Question: IN JAVA: A library has many type of materials to lend to patrons. Books, videos and DVDs are three types of these materials. All three

IN JAVA:

A library has many type of materials to lend to patrons. Books, videos and DVDs are three types of these materials. All three have titles, but books have an author while videos and DVD have a director. Each can be lent out to a partron for 10 days (books) or 20 days (videos or DVDs). Make classes for the types of material along with a method that posts when the material was borrowed. That method should take a date and add the appropriate number of days and determine the due date properly of the material. The textbook covers date handling. Date is a class with specific properties and methods. In addition to the classes, write some code in a main method that creates media, has them borrowed by patrons and correctly tracks the due date.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!