Questions tagged as 'classes'

1
answer

Instantiating one class in another constructor in PHP?

I have a class named teacher that is heiress of another person call, I am trying to instantiate a third class of connection with bank in the class constructor method of Teacher, however it is returned to me Fatal error : Uncaught Error: Call...
asked by 12.06.2018 / 14:17
2
answers

Use of chained static functions

I wanted to use static PHP functions as follows: class A { static function a1() { echo "A1"; return A; } static function a2() { echo "A2"; return A; } } A::a1()::a2(); It works but shows this...
asked by 07.08.2018 / 21:58
1
answer

Instances and variables in C #

In C # when you create a variable you create a value of a certain type, for example a bool can only receive true or false , a int integers and so on ... I wanted to know how these values would be classified, true...
asked by 24.10.2018 / 17:46
1
answer

What are DAO, MB, TO, SERVICE, MODEL, CONVERTER and HELPER classes? [closed]

In the projects of the company where I work I see several classes with these nominations, since I'm a beginner in programming, I'm not sure what they mean. Could you get me that doubt?     
asked by 16.06.2017 / 14:30
1
answer

How many classes can we have in the same package?

How many classes can we have in the same package?     
asked by 24.07.2018 / 20:39
1
answer

Create classes and functions in c ++ [closed]

Can anyone give an example of how to create main, o .h and .cpp in c ++? And also bind them all. For example having a function that receives an input a value a, have another class that receives input a b and a class apart to do the sum and retur...
asked by 13.11.2018 / 19:13