Re: class inheritance question

From: Date: Wed, 09 May 2001 10:38:35 +0000
Subject: Re: class inheritance question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52072@lists.php.net to get a copy of this message
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" <pylem@sympatico.ca> To: <php-general@lists.php.net> 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

« previous php.general (#52072) next »