Questions tagged as 'clase'

3
answers

Is it advisable to include classes as nested classes, or is it better to keep them separated one per file?

When creating the classes in a project you have the option to have nested classes. Based on your development experience you should create nested classes in some particular cases or it is preferable to always maintain classes independently....
asked by 22.02.2017 / 15:12
2
answers

Question about method get in javascript

A question, that it helps me to outsource a property, I have created a total property with the method get, but for what is necessary? Since doing a method I can call it the same with () and return what I want, instead of getting total () I do to...
asked by 15.01.2018 / 13:41
4
answers

Create a "hidden" class only accessible from another

I am creating an API and I would like the user to only depend on one class, so that he does not have to search through several and be simpler (For this example, I will use the names ClassA and ClassB, ClassA being the public and Class B I want t...
asked by 11.10.2016 / 08:43
1
answer

Create classes (class .vb) from a table created in MS SQL Server

I have a database created in MS SQL Server with different tables in it. What I'm trying to do is generate from this model "import" in some way to Visual Studio 2013 (Visual Basic - Framework 4.0) and generate classes automatically. For exampl...
asked by 10.02.2017 / 20:57
1
answer

Pass variables and perform actions between classes in C #

I am learning the C # language, also using the VisualStudio tool, and I can not pass a variable (BtnColor in the code) from one class to another, and then perform an action from the value of that variable. This is the form I try to create in Vis...
asked by 25.08.2018 / 22:52
3
answers

Give access to a class to a private member of another class

I have a class to call class A that contains an object of class B . class A{ B objeto_b; }; I need that A can access a private method of class B . Why do I want it to be private then? Because that method I only w...
asked by 10.04.2018 / 19:24
1
answer

Circular dependence on ES6 classes using Angular

Hello! I have a circular dependency problem in an Angular project (4.3.X). In the app/models directory there are several files that represent the models received by the API. Scenario: // center.ts import {User} from './user';...
asked by 24.08.2017 / 12:42
3
answers

Difference between structures and classes in C ++

What is the difference in C ++ between a structure and a class? According to what I understand, a structure is the way in c ++ to create an object, just as in python class is used.     
asked by 01.12.2016 / 21:59
4
answers

when wanting to create a receipt object "non-static variable this can not be referenced from a static context"

I have a program that should simulate a card game. The Deck class is responsible for creating the deck and shuffling it (Naipe object). When trying to create the object (only one will be created) I get the error of the title. This is my main...
asked by 22.03.2018 / 22:27
2
answers

Why do the private attributes of a class change despite assigning them to another variable?

You define a class with a 'private' attribute called __rango then you want to make a copy of this attribute in the variable rangoT to modify it without affecting the original attribute, but both change its value. Class definitio...
asked by 10.04.2018 / 21:06