Question: Classes _ Objects - Project Module 1 Please create below mentioned classes and please make sure you include all data members and methods. Book and

Classes_Objects - Project Module 1
Please create below mentioned classes and please make sure you include all data members and methods.
Book and Library:
Class 1: Book
Attributes: title, author, ISBN
Methods: getDetails0, borrowBook0, returnBook0
Class 2: Library
Attributes: listOrBooks, borrowedBooks
Methods: addBook(Book book), borrowBook(String ISBN), returnBook(String ISBN), listAvailableBooksO
Goal: Create a small library system where books can be added, borrowed, and returned.
Instructions:
Start by creating the 'Book' class.
Define the attributes: 'title', 'author", and "ISBN",
Create methods to get book details, borrow a book, and return a book.
Next design the 'Library' class.
Define the attributes: listOfBooks" (use an Array) and "borrowedBooks" (also 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.
Screenshots of Code and output:
2. Bank and Account:
Class 1: Account
Attributes: accountNumber, balance
Methods: deposit(double amount), withdraw(double amount), checkBalance 0
Class 2: Bank
Attributes: listofAccounts
Methods: createAccount(int accountNumber), deposit(int account Number, double amount), withdraw(int accountNumber, double amount), checkAccountBalance(int account Number)
Goal: Create a simple bank system where accounts can be created, deposits and withdrawals can be made, and balances can be checked.
Im java please
 Classes_Objects - Project Module 1 Please create below mentioned classes and

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 Databases Questions!