Home > php教程 > php手册 > body text

php简单的抽象类方法

WBOY
Release: 2016-06-13 10:57:48
Original
777 people have browsed it

abstract  class person{

abstract function test();


}

class father extends person{


function test(){

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

}

}

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!