hi,

note that this is also workin in PHP:

 class A {
    function aa(){}
    function bb($x){} 
 }
 
 class B extends A 
 {
     function bb($x) 
     {
         A::bb();  // inherited method called!!!
         $this->aa();
     }
}
Nice and perfect.

----- Original Message ----- 
From: "py" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 2001. május 8. 15:02
Subject: [PHP] class inheritance question


Hello,

Class A{
    function aa(){}
}

Class B extends A{
    function bb(){
        $this->aa();    // I know this is ok
    }
}

Class C extends B{
    function cc(){
        $this->bb();    // Will this work ? 
     }
}

py



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to