note 95914 added to language.oop5.interfaces
| From: | Guest at osu1 dot php dot net | Date: | Thu, 28 Jan 2010 15:01:45 +0000 |
| Subject: | note 95914 added to language.oop5.interfaces | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165456@lists.php.net to get a copy of this message | ||
<?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()
{
}
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 209.51.155.18
----
Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php
Edit -- https://master.php.net/note/edit/95914
Del: integrated -- https://master.php.net/note/delete/95914/integrated
Del: useless -- https://master.php.net/note/delete/95914/useless
Del: bad code -- https://master.php.net/note/delete/95914/bad+code
Del: spam -- https://master.php.net/note/delete/95914/spam
Del: non-english -- https://master.php.net/note/delete/95914/non-english
Del: in docs -- https://master.php.net/note/delete/95914/in+docs
Del: other reasons-- https://master.php.net/note/delete/95914
Reject -- https://master.php.net/note/reject/95914
Search -- https://master.php.net/manage/user-notes.php