Question: ** Using Netbeans Or JCreater. Polymorphism Exercise 1. Write a Polymorphism program, where there are two classes, a super class called Book and a derived
** Using Netbeans Or JCreater. Polymorphism Exercise
1. Write a Polymorphism program, where there are two classes, a super class called Book and a derived class called HistoryBook having the following methods; ? The Book class should have a method, void title(), this method should print a message telling you this is a general book. ? The HistroryBook, should override the title()method, to tell you this is a History book. ? The HistoryBook class should also overload the title() method with another method, void title(String s), where s is taken as an argument for the country covered by this book, which is printed by the method. ? Write an application class BookApp to use all these methods from all classes using different objects types and different reference classes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
