Overriding methods in classes

From: Date: Thu, 08 Jun 2000 10:46:33 +0000
Subject: Overriding methods in classes
Groups: php.db 
Request: Send a blank email to php-db+get-260@lists.php.net to get a copy of this message
In php3 are you able to access methods (apart from the constructor) from parent classes? or are overrides absolute? for example: class foo { function func() { echo "foo.func"; } } class bar extends foo { function func() { // how can I access foo->func() from here (If I can at all) ? // I would have thought something like $this->foo->func() or something } } cheers Beorn

« previous php.db (#260) next »