inheritance

From: Date: Sun, 29 Jun 2003 12:38:16 +0000
Subject: inheritance
Groups: php.general 
Request: Send a blank email to php-general+get-153414@lists.php.net to get a copy of this message
Hi I'm with PHP for 4 years now but have feeling that my code doesn't have much order. I only started to use functions, it helped me a lot but I believe if I would learn to wirk with classes that would be what I need. The question: I have class A, class B, and class C now class C extends B that means I can use all variables and functions of class B in class C like $this->B(); but what to do if I also need functions and variables of class A in class C? Can I do "class B extends class A" and "class C extends class B" and then to use functions and variables of class A in class C like $this->B()->A(); ? I think I can't do it this way but still would like to ask it in here. If I can't do it this way - tell me how can I do it? Thank you, Yury <>< <>< <>< <>< God is our provider ><> ><> ><> ><> http://www.body-builders.org/

« previous php.general (#153414) next »