Question: Book.java Class Write java class for the following UML Book.java - author: String - title: String - numberOfPages: integer -isbn: integer Book() Book( String author,
Problem 1: Book.java Class Write java class for the following UML Book.java -author: String title: String -numberOfPages: Integer isba: Integer Book Book String author, String title, Integer numberOfPages. Integer isbn) *pet Title) String +set Title:String) getAuthor String setAuthor(String) getNumberofPages: Int set NumberofPagesint getIsbn) sint setishnint) display Book ) Library.java Class Write a Library.java class. This class can hold upto 20 object of the class Book It has two attributes Book shelves[]; //array of books int num; //store the current number of books in the shelve Library O is the default constructor which initializes the array with size 20 book; Boolen addBook(Book aBook) method which takes a book as input and add it to the last empty place in the array. If the array is full the method should return false, otherwise it returns true. Print method which displays all the books information of all the books in the shelve array. Object-Oriented Programming. Assignment 2/2 Spring 2020-2021
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
