note 92048 rejected from language.oop5.decon by danbrown
| From: | danbrown@php.net | Date: | Tue, 07 Jul 2009 02:10:18 +0000 |
| Subject: | note 92048 rejected from language.oop5.decon by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157995@lists.php.net to get a copy of this message | ||
Note Submitter: leelu123 at gmail dot com
----
Hi,
Is this explaination correct in the manual for "Destructor" which says
"Like constructors, parent destructors will not be called implicitly by the engine. In order to
run a parent destructor, one would have to explicitly call parent::__destruct() in the destructor
body. "
In constructors also parent constructors are not called implicitly, to call a parent constructor in
child we should use parent::__construct
So the above pararagraph in manual should be
"As in constructors , to run a parent destructor, one would have to explicitly call
parent::__destruct() in the destructor body. "
Regards
Leeladharan M P Achar