Question: 1 . Start by creating the ` Book ` class. - Define the attributes: ` title ` , ` author ` , and ` ISBN
Start by creating the Book class.
Define the attributes: titleauthor and ISBN
Create methods to get book details, borrow a book, and return a book.
Next, design the Library class.
Define the attributes: listOfBooksuse an Array and borrowedBooksalso an
Array
Implement methods to add books to the library, borrow books using ISBN, return
books, and list available books.
In the main method you can create a separate Main class or use any of the two
classes demonstrate the functionality by creating books, adding them to the library,
borrowing, and returning them.
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
