note 102622 deleted from language.oop5.decon by danbrown
[email protected] Thu, 24 Feb 2011 13:50:47 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: Anonymous
----
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!