Software Design

classes and Objects

Due Date: Thursday, September 10

Points: 20 points

Suppose the local library has asked you to develop a program to help them track their books. In order to develop this program you decide to develop a class called Book which stores information about a single book (not multiple books). This class will have the following instance variables (all of which are declared to be private) and methods defined:

Instance Variables of the class book

Methods of the class Book

Now suppose that the driver class for your program (the class that has the main method in it) has an array of books declared (or an ArrayList if you want to study the java API and learn how to use that class) and these other variables:
Book[] libraryBooks = new Book[500]; (or ArrayList libraryBooks;)
int totalBooks; //total number of books being stored in the array

Using Netbeans, create a Java project with a Book class and a driver class with a main method that includes a menu which allows the user to do the following:


Return to the Software Design Home Page