Question: It is required to develop an application called Library System to maintain information about books and members in a library. Students can work individually or
It is required to develop an application called Library System to maintain information about books and members in a library. Students can work individually or every two students togetherj
A Write a class called Book having the following data members: title String authorString authorString publisher String yearPublication int isbn String accessionNum long issuedTo LibMember
Include following public methods in the class:
Default constructor without any parameters constructor with parameters except for issuedTo initialize issuedTo to null set and get methods for all attributes, equals and toString.
NOTE: The ISBN is a unique digit number assigned by the publisher. It is like barcode. As there can be multiple copies of a book in a library, the libraries assign a unique number, called accession number, to every book in the library to keep track of the books in the library. Assume that accession number starts from
B Write a class called LibMember having the following data members:
firstName String lastName String gender char cprNum long teleNum String booksIssued array of type Book, size and numBooksIssued int
Include following public methods in the class:
Default constructor without any parameters constructor with parameters except for bookslssued and numBooksIssued initialize nubBiiksIssued to set and get methods for all attributes, equals and toString.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
