Question: java full program Write a class called Book having the following data members: title ( String ) , author 1 ( String ) , author

java full program
Write a class called Book having the following data members: title (String), author1(String), author2(String), publisher (String), yearPublication (int), isbn (String), accessionNum (long), issuedTo (LibMember). Include following public methods in the class: Default constructor (without any parameters), constructor with 6 parameters (except for issuedTo initialize issuedTo to null), set and get methods for all attributes, equals and toString. NOTE: The ISBN is a unique 13 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 1001.
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 =10) and numBooksIssued (int). Include following public methods in the class: Default constructor (without any parameters), constructor with 5 parameters (except for booksIssued and numBooksIssued initialize nubBiiksIssued to 0), 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 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 Programming Questions!