Question: Consider a class called Book that represent a book. A Book should include four pieces of information as instance variables: a book name, an ISBN
- Consider a class called Book that represent a book. A Book should include four pieces of information as instance variables:
- a book name,
- an ISBN number
- an author name
- a publisher name.
public class Book
{
private String Name;
private String ISBN;
private String Author;
private String Publisher;
//Write your code here
- Your class should have a constructor that initializes the four instance variables.
- Provide a mutator method and accessor method for each instance variable.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
