Questions tagged as 'classes'

1
answer

Delete information from a vector that is in another C ++ class

Hello, I have a question regarding classes in C ++, I hope someone can help me. Thanks in advance! I'm developing a college assignment where I need to enroll students, subjects, and grades, and in the end display some reports, all using the c...
asked by 29.06.2015 / 04:04
1
answer

Problems eliminating node of a Vector

I have two classes: class CAlbum { private: QString Nome; /**< Nome do Álbum */ QString Descricao; /**< Descrição do Álbum */ QString Diretoria; /**< Diretoria onde se encontra o Álbum */ //QPixmap Imagem; std::vec...
asked by 29.05.2016 / 06:08
1
answer

Methods with parameter Dynamic C #

I need your help with the following question. I have a data access class that has a method that takes the parameters to execute a stored procedure. The problem is this, I have several objects in the application and I'm trying to create a c...
asked by 20.06.2016 / 01:52
1
answer

Doubt in class diagram

I'm developing my class diagram for a project and I got the following question: How do I indicate that only ADM can register a taxpayer? Do I have to state this already in the Class Diagram? Thanks Is there a method for viewing the clas...
asked by 11.02.2016 / 21:54
1
answer

Printing all the attributes of a class [duplicate]

I have the following class: class Usuario(object): def __init__(self): self.Nome = '' self.Email = '' self.SalarioBruto = 0.0 self.SalarioLiquido = 0.0 self.Cargo = '' self.Despesas = Despe...
asked by 17.09.2018 / 23:58
1
answer

How to organize the CRUD methods for each table?

I would like to know how best to organize the CRUD (create, read, update, delete) methods of each class in Java. An example, to get better at understanding: Suppose we have the Funcionario , Cliente and Produto classes....
asked by 10.06.2015 / 19:33
1
answer

Java class for performance analysis of my project

I'm looking for a Java class or package to help me do an analysis of the performance of my app. I need information such as: processing time, memory consumption, processor usage ... and so on. I know there are some tools to do this, but I want to...
asked by 30.03.2015 / 19:27
1
answer

Two classes mapping the same table with the Entity Framework

I'm trying to make entity map two classes to the same table this is possible? Scenario: My identity is decoupled (Eduardo Pires' tuto) from my domain and from the presentation layer on the domain layer I have a usuario...
asked by 17.01.2017 / 00:13
3
answers

Is there any interfaces in python?

In languages like PHP and Java, there are interfaces , which, when implemented in a class, forces it to contain the methods of this interface, just as they were declared. Example in PHP: <?php interace UserInterface { public fu...
asked by 03.07.2015 / 17:50
3
answers

How to use static and global variables in PHP?

I need the value of a variable in several functions to be able to increment and decrement the value of the variable. I have tried to use static variable started with null value, but even changing its value, it gets null. How do I manipulat...
asked by 05.02.2015 / 12:55