Class method calling same method in parent

From: Date: Wed, 10 May 2000 21:20:08 +0000
Subject: Class method calling same method in parent
Groups: php.version4 
Request: Send a blank email to php-version4+get-14791@lists.php.net to get a copy of this message
I need to be able to have a class which extends another class, and have a method in that class be able to call the method with the same signature in the parent class. Something like: class X { function foo() { $this->bar(); } // ... }; class Y extends X { function foo() { $super()->foo(); $this->baz(); } // ... }; This is trivial in all the other OO languages I use (Ada, C++, Java). Can someone point me to how to do it in PHP? Many thanks.... Jeff -------- Jeff Dickey Title Irrelevant Lariat Software, Inc. +1 206 695 5757 - voice +1 206 652 4736 - fax mailto:jdickey@lariat.com mailto:jeff_dickey@hotmail.com - personal email mailto:4252603103@messaging.sprintpcs.com - pager "If you can't reach me through all these, one of us is probably dead"

« previous php.version4 (#14791) next »