note 51370 added to language.oop5.interfaces
| From: | mkeasling at gmail dot com | Date: | Tue, 29 Mar 2005 00:33:24 +0000 |
| Subject: | note 51370 added to language.oop5.interfaces | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87119@lists.php.net to get a copy of this message | ||
I don't have a way to test this, so I'm wondering how this would work:
<?php
interface MyInterface {
public function funcOne();
public function funcTwo();
}
abstract class AbstractImplementation implements MyInterface {
abstract public function funcOne();
public function funcTwo(){
//...
}
}
class ConcreteImplementation extends AbstractImplementation {
public function funcOne(){
//...
}
}
?>
If so, what about:
<?php
class ConcreteImplementation extends AbstractImplementation implements MyInterface {
public function funcOne(){
//...
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51370
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51370&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51370&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51370&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51370&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51370&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51370&report=yes
Search -- http://master.php.net/manage/user-notes.php