note 102622 deleted from language.oop5.decon by danbrown

From: Date: Thu, 24 Feb 2011 21:50:47 +0000
Subject: note 102622 deleted from language.oop5.decon by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177307@lists.php.net to get a copy of this message
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!

« previous php.notes (#177307) next »