RE: [PHP] oop

From: Date: Tue, 09 Jan 2001 07:50:49 +0000
Subject: RE: [PHP] oop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33415@lists.php.net to get a copy of this message
> -----Original Message----- > From: Luescher Samuel (MMVZSLU) > [mailto:samuel.luescher@ch.mullermartini.com] > Sent: Tuesday, January 09, 2001 8:47 AM > To: 'php-general@lists.php.net' > Subject: [PHP] oop > > > 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. You can use foo::bar(); Przem

« previous php.general (#33415) next »