Question: Q1. Create a class named Book with the fields: AuthorName, PublisherName, Title and Pages (data types are String and int). Q2 . Declare a parameterized

Q1. Create a class named Book with the fields: AuthorName, PublisherName, Title and Pages (data types are String and int).

Q2. Declare a parameterized Constructor for the above class(Book) and set the AuthorName and PublisherName. And declare a method getPublication() in the Book class and return the PublisherName.

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!