note 57776 deleted from language.oop5.interfaces by felipe
| From: | felipe@php.net | Date: | Tue, 11 Dec 2007 01:05:51 +0000 |
| Subject: | note 57776 deleted from language.oop5.interfaces by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133351@lists.php.net to get a copy of this message | ||
Note Submitter: nuying117 at 163 dot com
----
If a class implements two interfaces , but these two interfaces have a same method,for example
<?php
interface TestInterface1
{
function testMethod1();
function testMethod2();
}
interface TestInterface2
{
function testMethod2();
function testMethod3();
function testMethod4();
}
class ImplementClass implements TestInterface1,TestInterface2
{
function __construct()
{
echo "I am constructor\r\n";
}
function __destruct()
{
echo "I am destructor\r\n";
}
function testMethod1()
{}
function testMethod2()
{}
function testMethod3()
{}
function testMethod4()
{}
}
?>
It will cause a fatal error!