Questions tagged as 'classes'

2
answers

Struct or Classes?

I made the code using structure, wanted to know if classes would be more efficient. I'm doing it in C ++ Builder. The idea of the code is as follows: create a list of problems, where during the execution of the code will be added and removed num...
asked by 30.07.2016 / 03:14
1
answer

Class functions hook (offset)

I do not know the right way to explain this, but I'll try it my way. I have an .exe application and I need to create some customizations for the executable, so I created a DLL and gave the hook so that the changes are loaded. By then, everyone k...
asked by 06.02.2016 / 01:21
1
answer

Call another class method in the same application

I'm having a hard time performing a task maybe even simple, for those who are more accustomed to the Java language on Android. I have an application that has menus with options. One of them is to send TextView 's data to a server on th...
asked by 13.09.2015 / 18:55
1
answer

Class derived from PrintDocument class C #

I have a class to print labels (CPrint), this class is derived from the PrintDocument class. In it it receives an image by calling a method contained in the Form1.cs class. Here is the code for class CPrint.cs (derived fr...
asked by 26.06.2015 / 19:18
2
answers

Doubt over inheritance in classes

How do if of the controller return TRUE or FALSE according to check() of Validator? Currently it returns Boolean for validate(); , but I wanted it to continue until the end of the code, to then return the Boo...
asked by 28.02.2014 / 19:32
1
answer

Java POO - World Cup Modeling [closed]

I am entering the universe of Object Orientation and, driven by curiosity, I decided to try to simulate the organization of a World Cup through these concepts. Well, I have some difficulties with the classes and I would like your help so that...
asked by 15.06.2018 / 22:07
1
answer

How to create a frame with text mid page? [closed]

HowdoIcreateframesthatarethesame,alsowithabitoftransparency? I was kind of doing this basic work.     
asked by 10.05.2018 / 21:03
0
answers

Why turn absolutely everything into Classes in PHP?

My systems in both ASP, Delphi and PHP maintains an old (procedural) middle pattern in programming mode, as I find it tedious to program the way it is today, I see many, if not all, using Classes, Objects and the like in such simple routines and...
asked by 27.03.2018 / 03:11
4
answers

Why this division in class instantiation in C #?

In the book " Use the Head - C # , the author declares classes in a way that I did not understand their utility, according to example: public partial class Form1 : Form { Farmer farmer; public Form1 () { InitializeComponent(...
asked by 30.01.2017 / 18:55
3
answers

How to create a class with type inference that can have a default type in C #

I'm creating a class where I do the type inference, as in the example below: public class Foo<T> { public T Bar { get; set; } } Is there any way I can set T to a default type like string ? My intention is to be able to use b...
asked by 16.10.2018 / 20:48