本文实例讲述了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程序设计有所帮助。