class Employee
{
public static $favSport = "Football";
public static function watchTV()
{
echo "Watching ".static::$favSport;
}
}
class Executive extends Employee
{
public static $favSport = "Polo";
}
echo Executive::watchTV();
Parse error: syntax error, unexpected T_STATIC on line 7
Why do I get parse error & and how to fix it? Thanks!