不是静态方法才能用::么???
这里的 "parent::" 是一个整体 表示调用父类的方法
只有静态方法才可以使用" : ",别的都是 " ->"调用内容
class book{
$name="钢铁是怎样炼成的";
funation getName(){
this->$name;
}
pustatic $price="100元";
public static function getPrice(){
return self::$price;
}
}
$book=new book();
$book ->name;//共有属性调用
book::getPrice();//调用静态方法