Is there a way to inherit a class and set all methods to protected or private?
I reffer to C++ inheritance type:
class A {
public: void Hello(){ /* prints a hello world */ }
};
class B : protected A {
};
In this case, the public methods would inherit as protected.
If I change protected to private, the public and protected methods would inherit as private.
My question is: Is it possible to do that in PHP?
php.