PHP - Inheritance and Polymorphism
What will happen when the following PHP code runs?
class Vehicle {}
class Bike {}
function ride(Vehicle $v) {
echo "Riding vehicle";
}
$bike = new Bike();
ride($bike);