定义继承于Car的Truck类 是这样写?
是这样写的
class Truck extends Car{
function speedUp(){
$this->speed +=60;
return $this->speed;
}