RE: [PHP] oop
| From: | Cynic | Date: | Tue, 09 Jan 2001 13:01:32 +0000 |
| Subject: | RE: [PHP] oop | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33450@lists.php.net to get a copy of this message | ||
yes, but watch out: http://bugs.php.net/bugs.php?id=8565
At 08:50 9.1. 2001, Przem Kowalczyk wrote the following:
--------------------------------------------------------------
>> -----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
>
>
>--
>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
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz