note 41134 deleted from language.oop.constructor by danbrown
| From: | danbrown@php.net | Date: | Sat, 07 Nov 2009 18:57:39 +0000 |
| Subject: | note 41134 deleted from language.oop.constructor by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162531@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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.
}
}