【php开源代码栏目提醒】:网学会员--在 php开源代码编辑为广大网友搜集整理了:code4.8.php绩等信息,祝愿广大网友取得需要的信息,参考学习。
<?php
interface IShowNameable {
public function myname();
}
interface IOtherNameable extends IShowNameable {
public function othername();
}
class showname implements IOtherNameable {
public function myname() {
echo "EastJia";
}
public function othername() {
echo "Joy";
}
}
$show = new showname();
$show->myname();
echo "<br>";
$show->othername();
?>