答題始終不通過
http://idcbgp.cn/code/541?這里 填?
<?php
class Car {
? ? public $speed = 0;
? ? //增加speedUp方法,使speed加10
? ? public function speedUp(){
? ? ? ? $this->speed += 10;
? ? }
}
$car = new Car();
$car->speedUp();
echo $car->speed;
怎么不對?復制答案上去也不對
http://idcbgp.cn/code/541?這里 填?
<?php
class Car {
? ? public $speed = 0;
? ? //增加speedUp方法,使speed加10
? ? public function speedUp(){
? ? ? ? $this->speed += 10;
? ? }
}
$car = new Car();
$car->speedUp();
echo $car->speed;
怎么不對?復制答案上去也不對
2017-10-19
舉報
2020-03-29
可以運行啊??
2018-03-26
我也總是出現(xiàn)這種情況,然后我把方法里的內(nèi)容刪掉重新寫一遍,就可以通過了。
2018-02-04
沒錯 ?我直接運行成功了 ?
2017-10-19
沒啥問題啊