note 48448 deleted from language.oop5.interfaces by felipe

From: Date: Sat, 15 Dec 2007 01:19:29 +0000
Subject: note 48448 deleted from language.oop5.interfaces by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133489@lists.php.net to get a copy of this message
Note Submitter: m.kurzyna AT nius waw pl ---- You can have a class implementing two or more interfaces, just seperate them with a coma: <?php interface i_one { public one(); } interface i_two { public two(); } class oneANDtwo implements i_one, i_two { public one() {} public two() {} } ?> Of course all implemented interfaces will be tested, so one needs to have one() and two() in their class to avoid errors.

« previous php.notes (#133489) next »