Question
Asked by:
$10.00 LibraryItem class
- From Computer-Science: Object-Oriented-Programming
- Closed, but you can still post tutorials
- Due on May. 28, 2008
- Asked on May. 25, 2008 at 06:09:27AM
Q:a) Attributes title, author, media, status, cost. Choose appropriate data types.
b) Code a constructor to handle all 5 inputs.
c) Code another constructor to handle title and author only. Set default values otherwise.
d) Code methods to set media, status and cost.
e) Code a method to display author and title of all overdue items.
f) Code a method to display all data of an object.
The LibraryItem class should have an LibraryItemTest class to run it. In this class build 4 LibraryItem objects and run all methods to test that the methods work.



