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/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to