abstract:
class Father
{
public static $Money=50000;
public static function GetClass(){
return __CLASS__;
}
//调用静态方法
public static function GetMoney(){
return static::GetClass().'工资是'.static::$Money;
}
}
class Son extends Father
{
public static $Money = 30000;
public static function GetClass(){
return __CLASS__;
}
}
echo Son::GetMoney();
?>
Correcting teacher:查无此人Correction time:2019-03-14 09:18:57
Teacher's summary:完成的不错,下次把缩进,养成好习惯。继续加油