Re: [PHP4BETA] calling member in parent class

From: Date: Wed, 02 Feb 2000 20:53:59 +0000
Subject: Re: [PHP4BETA] calling member in parent class
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-9696@lists.php.net to get a copy of this message
At 22:01 02/02/2000 , Andrei Zmievski wrote:
On Wed, 02 Feb 2000, Eike Stepper wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hello, does anyone know, how to call a virtual member function within a parent class? Parent::method().
Parent is not a keyword; A clearer way to illustrate this is: parent_class_name::method() If method() is not overridden in the derived class, it's inherited, and you can just call $this->method(). If it is, use the above notation. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.version4 (#9696) next »