2
abstract class Ghost {
protected static $var = 'I\'m a ghost';
final public static function __callStatic($method, $args = array()) {
echo self::$var;
}
}
class Person extends Ghost {
protected static $var = 'I\'m a person';
}
Person::whatever()
의 전화 번호는 I'm a ghost
입니다. 왜?추상 정적 속성을 덮어 쓸 수 없습니까?