Questions tagged as 'classes'

1
answer

Extend class TClientSocket Delphi

I would like to know how to extend the TClientSocket class in Delphi, to put new features without losing the old, with examples. Thanks.     
asked by 19.08.2014 / 20:48
1
answer

How can I pass a value from a class to a Listbox

I am involved in a small personal project, composed of some classes and many forms. I need to send a value that is obtained when I access the given button, for the listbox that is in one of these forms. For this I chose to build a method called...
asked by 03.03.2014 / 16:21
1
answer

Turn level to Variable

I would like to create a new column, transforming Tab1612SojaRend$Nível.Territorial the levels "Great Region" and "Federation Unit" into columns. The Federation Unit has to be in the same column of the cities according to the state. Anoth...
asked by 11.12.2018 / 03:19
3
answers

Access modifier protected [closed]

A common class (which is not subclassed) and has no inheritance, can you use a protected attribute of a superclass that has a subclass? If yes, is this attribute visible (without using the get and set methods of the superclass)?     
asked by 13.05.2018 / 02:35
1
answer

How to declare class list?

I have a class Usuario that will have a list of class Pastas , and this class will have a list of class Questão . public class Usuario{ String nome; ArrayList< Pasta > listaPasta; } My problem is not know...
asked by 30.04.2018 / 03:31
3
answers

Micro system of classes in C

Hello. I have a small problem that I can not resolve. What I would like to do is simply initialize a struct that receives function pointers automatically. For example: struct teste{ int x; int y; int (*soma)(int, int); }; typed...
asked by 25.05.2018 / 00:26
1
answer

How do I call a function in swift xcode

Good night, I have a function that is linked to a button, I would like to call it directly without the need of the button, what do I do? The function ... static func goToTutorialOrTo(market: Market, from viewController: UIViewController) {...
asked by 16.05.2018 / 00:30
1
answer

Importing classes in Python 3

I have three .py files in my directory: Banco.py , app.py , Usuarios.py . My app.py contains the Tkinder import I am using in the code and here I start all my view and import the Usuarios.py class as follows:...
asked by 02.02.2018 / 02:07
1
answer

Change Class according to ID

I have the following structure. <div id="cabecalho"> <span data-bind="attr: { id: solicitacao.numero}"></span> <div> where, request returns a number from 1 to 10 I would like to add a class according to the number....
asked by 28.02.2018 / 16:03
2
answers

Is it wrong to mix struct with class in C ++?

I have the following class: #ifndef PESSOA_H_INCLUDED #define PESSOA_H_INCLUDED #include <string> struct aniver{ int dia; int mes; int ano; }; class Pessoa{ private: std::string nome; std::string sex...
asked by 17.12.2017 / 06:18