Question: Create 2 Field: private String title, private String author, and a constructor The fields should be initialized in the constructor and the constructor should look

Create 2 Field: private String title, private String author, and a constructor
The fields should be initialized in the constructor and the constructor should
look like this public Book(String title, String author){...}
Add getter and setter for all the fields.
Add a method called public void printBookInfo(){...}, that prints out the
title, and author of the Book.
Create another class called Library with 2 Field: private String libraryName, private HashMapdarr
Create 2 Field: private String title, private

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!