2
I have classes 1, 2a and 2b, where 1 is the main class, while 2a and 2b extends class 1. It is possible through class 2a to access values of class 2b directly or through the parent class?
Basic example:
class system{
}
class modulos extends system{
function __construct(){
$exemple = controllers::exemple();
}
}
class controllers extends system{
public function exemple(){
return true;
}
}
$system = new system();
These values are
public
,protected
orprivate
?– luiscubal
You can enter the code of the classes?
– rray