Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started