php抽象类用法实例分析
(编辑:jimmy 日期: 2025/11/10 浏览:3 次 )
本文实例讲述了php抽象类用法。分享给大家供大家参考。具体如下:
<"I am gettwo";
}
}
abstract class jj extends qian {
abstract function getthree();
}
class nan extends jj {
function getfirst() {
echo "I am getfirst";
}
function getthree() {
echo "I am getthree";
}
}
$nn = new nan();
$nn->getfirst();
$nn->gettwo();
$nn->getthree();
?>
希望本文所述对大家的php程序设计有所帮助。
下一篇:PHP导入导出Excel代码