note 95914 deleted from language.oop5.interfaces by danbrown

From: Date: Thu, 28 Jan 2010 15:03:32 +0000
Subject: note 95914 deleted from language.oop5.interfaces by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165457@lists.php.net to get a copy of this message
Note Submitter: Guest ---- <?php interface HighOffice { public function makePolicy(); public function declareEmergency(); } interface jailable { public function commitCrime(); public function appeal(); } abstract class Person { public function getAge() { return "28years"; } } class Employee extends Person { //do stuff for employee } class Criminal extends Person implements jailable { //do stuff for a criminal. //these must be present. public function commitCrime() { } public function appeal() { } } class President extends Person implements HighOffice { //do other stuff for President //then a President should make policies and declare emergency public function makePolicy() { } public function declareEmergency() { } } ?>

« previous php.notes (#165457) next »