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...
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...
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...
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?
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...