Re: [PHP4BETA] Class problems...

From: Date: Tue, 09 Nov 1999 12:45:25 +0000
Subject: Re: [PHP4BETA] Class problems...
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-5996@lists.php.net to get a copy of this message
Jarek Sygitowicz wrote: > > Is there a possibility to call in method, method with the same name > which is in the child class? I'v tried it with '::' ( like in C++ ) > but it doesn't work ;/ > example: > > class Base { > var foo; > > ... > function foobar(){ > printf("Base\n"); > } > > } > > class Test extends Base { > .... > > function foobar(){ > ::foobar(); /* to powinno wywolac foobar() z klasy Base */ > printf("Test\n"); > } > > Hope someone could help me :) err, I guess what you said there is a file scope function ::foobar() That should be Base::foobar() -- CIMPOESU Teodor, Web Programmer @ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo@digiro.net,+(401)-330.47.28 official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/

« previous php.version4 (#5996) next »