note 103655 deleted from language.oop5.interfaces by tularis
| From: | tularis@php.net | Date: | Mon, 20 Feb 2012 22:54:07 +0000 |
| Subject: | note 103655 deleted from language.oop5.interfaces by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186244@lists.php.net to get a copy of this message | ||
Note Submitter: ppp
----
A class can implement multiple comma-separated interfaces:
<?php
interface A { function a(); }
interface B { function b(); }
class C implements A, B {
function a() { echo "a\n"; }
function b() { echo "b\n"; }
}
?>