<?php
abstract class a{
abstract protected function test();
function threeDots(){
return '...';
}
}
class b extends a{
protected function test(){
echo $this->threeDots();
}
}
$obj = new a();
$obj->test();
?>
上面的代码给出错误......但不明白为什么?