Question: JAVA CODE Define a hierarchy of your own between classes(max number of classes is 5 and maximum level of hierarchy is 3). Describe the classes
JAVA CODE
Define a hierarchy of your own between classes(max number of classes is 5 and maximum level of hierarchy is 3). Describe the classes shortly, that they inherit and what is personal to them according to your own definition. Give a simple example of polymorphism when overriding a method among these classes. assuming the classes are written and functional, write a simple test drive using polymorphism of the objects and show its output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
