Re: Class::? - accessing data, no success, can´t find thread discussed in

From: Date: Mon, 03 Jul 2000 13:21:20 +0000
Subject: Re: Class::? - accessing data, no success, can´t find thread discussed in
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23312@lists.php.net to get a copy of this message
waldschrott wrote: > foo::foo does not work... > > Sure, $t=new foo(); $f->foo; would work, but I do not want to create an > instance... The "::" operator is not equal to the C++ "::" or Java's "." counterpart. In C++ or Java you can use "::" (".") for a static access of a method or property. The PHP "::" operator means something different. You can use it to access overriden methods of a superclass from within a drived class of the superclass. Ulf -- Ulf Wendel NetUSE AG Siemenswall, D-24107 Kiel, Germany Fon: +49 431 386435 00 -- Fax: +49 431 386435 99

« previous php.dev (#23312) next »