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:
    1. a book name,
    2. an ISBN number
    3. an author name
    4. a publisher name.

public class Book

{

private String Name;

private String ISBN;

private String Author;

private String Publisher;

//Write your code here

  1. Your class should have a constructor that initializes the four instance variables.
  2. Provide a mutator method and accessor method for each instance variable.

 Consider a class called Book that represent a book. A Book

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!