Question: with java 3. With Java: a)Create an interface named BookInt. Here define the methods ... getCategory0 and ... getName(). variables holding the named Book that

with java
3. With Java: a)Create an interface named BookInt. Here define the methods ... getCategory0 and ... getName(). variables holding the named Book that implements the BookInt interface. In this class: create two private variables and implement the getCategory of the joumal; create a constructor that passes values to these c) Create a class called as TestBook. Here, if the category entered by the user is different from the defined" should be displayed on ", "Sports", "CityBooks", the message "The category entered is not display the book features (category and name) on the sereen. Use the concept of ate a book instance and book object creation process. Use the appropriate methods of the Scanner copt of polymorphysm in the 4. What does the following program print? (15 p.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
