Guesss
Guesss
26. If same message is passed to objects of several different classes and all of those can
Respond in a different way, what is this feature called?
a) Inheritance b) overloading c) overriding d) Polymorphism
b) Write a program to demonstrate inheritance using a base class "Vehicle" and derived
classes "Car" and "Truck".