note 102622 added to language.oop5.decon
[email protected] Thu, 24 Feb 2011 13:32:24 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Very strange
/* Settings */
class Settings{
function __construct(){
echo "Settings Construct\n";
}
function Settings(){
echo "Settings Construct2\n";
}
}
/* PageManager */
class PageManager extends Settings{
function PageManager(){
echo "PageManager Construct\n";
parent::__construct();
parent::Settings();
}
This code work and interpreter say nothing about it. But actually It have two the same constructors!
----
Server IP: 69.147.83.197
Probable Submitter: 87.98.36.10
----
Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php
Edit -- https://master.php.net/note/edit/102622
Del: integrated -- https://master.php.net/note/delete/102622/integrated
Del: useless -- https://master.php.net/note/delete/102622/useless
Del: bad code -- https://master.php.net/note/delete/102622/bad+code
Del: spam -- https://master.php.net/note/delete/102622/spam
Del: non-english -- https://master.php.net/note/delete/102622/non-english
Del: in docs -- https://master.php.net/note/delete/102622/in+docs
Del: other reasons-- https://master.php.net/note/delete/102622
Reject -- https://master.php.net/note/reject/102622
Search -- https://master.php.net/manage/user-notes.php