Home >php教程 >php手册 >php简单的抽象类方法

php简单的抽象类方法

WBOY
WBOYOriginal
2016-06-13 10:57:48892browse

abstract  class person{

abstract function test();


}

class father extends person{


function test(){

echo '我是在抽象类里继承下来的覆盖方法';

}

}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn