<?php
//final关键字
final class BaseClass{
protected function action1(){
return "基类方法1";
}
}
class myClass extends BaseClass{
function result(){
return "调用的结果为:".$this->action1();
}
}
?>
<?php
//调用
$class=new myClass();
echo $class->result();
?>