Re: oop
| From: | Rasmus Lerdorf | Date: | Tue, 09 Jan 2001 07:51:21 +0000 |
| Subject: | Re: oop | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33414@lists.php.net to get a copy of this message | ||
parent::bar()
On Tue, 9 Jan 2001, Luescher Samuel (MMVZSLU) wrote:
> hi there! is there any way to call an inherited class method if it is
> overridden in the derived class?
>
> e.g.
>
> class foo {
> function bar() {
> // do something
> }
> }
>
> class better_foo extends foo {
> function bar() {
> // first, call inherited foo->bar()
> // then do some more stuff
> }
> }
>
> thanks - sam.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>