为什么echo BigCar::start(); 输出不了?
<?php
class Car {
private static $speed = 1100;
public static function getSpeed() {
return self::$speed;
}
public static function speedUp() {
return self::$speed+=120;
}
}
class BigCar extends Car {
public static function start() {
parent::speedUp();
}
}
echo BigCar::start();
echo BigCar::getSpeed();