note 52021 deleted from language.oop5.patterns by danbrown

From: Date: Sun, 23 Jan 2011 16:48:37 +0000
Subject: note 52021 deleted from language.oop5.patterns by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176125@lists.php.net to get a copy of this message
Note Submitter: richard dot quadling at bandvulc dot co dot uk ---- Further to my note. If you think I called the wrong method in the last line of code ... $subclass2Instance->TellMe(); Notice I am using the SECOND subclass but a method from the FIRST subclass. This should be the clue to see that multiple subclasses of a base singleton class don't work. If you try to call ... $subclass2Instance->TellMeMore(); you get, as expected, a fatal error ... Fatal error: Call to undefined method SubClass::TellMeMore() Hope that clarifies things.

« previous php.notes (#176125) next »