Re: [PHP] RE: overloading variables in child classes

2001-10-28 Thread Alain Dresse
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

[PHP] RE: overloading variables in child classes

2001-10-27 Thread Andrew Kirilenko
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