Polymorphism

5.2 [CJ2 Ch. 4] Given a scenario, develop code that demonstrates the use of polymorphism. Further, determine when casting will be necessary and recognize compiler vs. runtime errors related to object reference casting.

5.2.1 Define polymorphism
Classes or functions having the same name but taking different types.

5.2.2 Give examples of polymorphism

5.2.3 Use of object reference casts

5.2.4 Compiler and runtime errors related to object reference casting