PHP - Inheritance and Polymorphism
What will be the output of this PHP code?
class Vehicle {
public function start() {
return "Vehicle started";
}
}
class Car extends Vehicle {
public function start() {
return "Car started";
}
}
$car = new Car();
echo $car->start();