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