note 48448 added to language.oop5.interfaces

From: Date: Fri, 24 Dec 2004 02:04:27 +0000
Subject: note 48448 added to language.oop5.interfaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-82227@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48448 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48448&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48448&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48448&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48448&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48448&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48448&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48448&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82227) next »