Write a class with three overloaded virtual functions.
Inherit a new class from this and override one of the
functions. Create an object of your derived class. Can you
call all the base class functions through the derived-class
object? Upcast the address of the object to the base. Can
you call all three functions through the base? Remove the
overridden definition in the derived class. Now can you
call all the base class functions through the derived-class
object?
Write a class with three overloaded virtual functions. Inherit a new class from this and override one of the functions. Create an object of your derived class. Can you call all the base class functions through the derived-class object? Upcast the address of the object to the base. Can you call all three functions through the base? Remove the overridden definition in the derived class. Now can you call all the base class functions through the derived-class object?