mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
elaborate when inherited constructors arn't called.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167031 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
345466ea26
commit
6bc3f35737
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<sect1 id="language.oop5.decon">
|
||||
<title>Constructors and Destructors</title>
|
||||
|
||||
|
@ -18,9 +18,10 @@
|
|||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
Parent constructors are not called implicitly. In order to run
|
||||
a parent constructor, a call to
|
||||
<function>parent::__construct</function> is required.
|
||||
Parent constructors are not called implicitly if the child class defines
|
||||
a constructor. In order to run a parent constructor, a call to
|
||||
<function>parent::__construct</function> within the child constructor is
|
||||
required.
|
||||
</simpara>
|
||||
</note>
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue