Method overloading

From: Date: Fri, 10 Nov 2000 11:59:47 +0000
Subject: Method overloading
Groups: php.general 
Request: Send a blank email to php-general+get-24648@lists.php.net to get a copy of this message
Hi all, Does anybody know how to access an overloaded method in the superclass, OUTSIDE of the (sub)class defintion? Say you have: class A { var $a; function print ( ) { print ("A"); } } class B extends A { var $b; function print ( ) { print ("B"); } } $b = new B (); Now, how do I access the 'print'-method in class A through an instance of class B, without explicitly writing a method in B that does 'A::print ()'? Is it at all possible? Cheers, -Morten --------------------------------------------------------------- Rayon Interaktiv AS http://www.rayon.no Morten Lerskau Rønseth mailto:morten.ronseth@rayon.no Karenslyst Allé 16d Tlf.: (47) 2254 1820 0278 Oslo Fax : (47) 2254 1821 Norway Mob.: (47) 9343 4357 ICQ : 25163080

« previous php.general (#24648) next »