classes and inherited methods..

From: Date: Tue, 18 Jan 2000 08:48:55 +0000
Subject: classes and inherited methods..
Groups: php.version4 
Request: Send a blank email to php-version4+get-9219@lists.php.net to get a copy of this message
suppose i have a class class a { var $myvar; function method() { print($this->myvar); } } and i want to extend it...overriding the method.. class b extends a { function method() { # do something and the call the parent # method.. # how can i call the parent method # while i'm overriding it?? } } i just renamed method to methodB ,.. but i need to change all of my calls to it! is there a workaround it?? thanx. - stefano bagnara (data sail s.r.l.) [bago.org]

« previous php.version4 (#9219) next »