note 41134 added to language.oop.constructor
| From: | php-general at lists dot php dot net | Date: | Wed, 31 Mar 2004 11:50:26 +0000 |
| Subject: | note 41134 added to language.oop.constructor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67412@lists.php.net to get a copy of this message | ||
to propagate the call to constructors, here is a good method :
class B extends A
{
var $var2;
function B ($arg)
{
parent::A(); // Invoke the constructor of the parent.
}
}
----
Manual Page -- http://www.php.net/manual/en/language.oop.constructor.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41134
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41134&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41134&report=yes
Search -- http://master.php.net/manage/user-notes.php