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
Get step-by-step solutions from verified subject matter experts
