Andrew,
Thanks for your reply. There still is something I don't understand.
I understand that my derived class inherits all the member variables and
functions of the base class. I would expect however that upon redeclaring a
variable in a derived class, the variable in the derived class "shadows
Hello!
> Is there something I don't understand ?
Yes.
According OOP concepts, derived class inherits all functionality and data
from the base. So, if you have $shared variable in the base class, your
derived class will have it automatically. But PHP allows you to declare this
variable once again
2 matches
Mail list logo