Challenge 1 / 1
Look at these two classes:
class Ship
{
public function getName()
{
return 'Starfighter';
}
}
class JediShip extends Ship
{
public function getFavoriteJedi()
{
return 'Yoda';
}
}
Suppose we instantiate both objects:
$ship = new Ship();
$jediShip = new JediShip();
Which of the following lines will cause an error?
Skip challenges and go to theNext Chapter