note 92637 deleted from language.oop5.abstract by googleguy

From: Date: Tue, 22 Oct 2013 12:15:21 +0000
Subject: note 92637 deleted from language.oop5.abstract by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197103@lists.php.net to get a copy of this message
Note Submitter: Kiam ---- The person - student - employee is the classic example where the interfaces are more appropriate. It is true that students, and employees are persons, but a person can be both a student, and an employee. <?php class Person { // Properties for Person objects. } interface IStudent { // ... } interface IEmployee { // ... } class Student implements IStudent extends Person { // ... } class StudentEmployee implements IStudent, IEmployee extends Person { // ... } ?>

« previous php.notes (#197103) next »