Class problems...
| From: | Jarek Sygitowicz | Date: | Tue, 09 Nov 1999 11:31:32 +0000 |
| Subject: | Class problems... | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5991@lists.php.net to get a copy of this message | ||
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 :)
GWIDo
--
[ Jarosław Sygitowicz ] [ http://linux.news.pl ] [
gwido@paiz.gov.pl ]
[ fast: 501020736@sms.e-biznes.pl ] [ http://video4.linux.pl
] [ --- ]
[ If you want something to be done good... do it yourself! ] [ ----- ]
[ Home page: http://golem.melog.com.pl/~gwido ] [
------------------ ]