Question: Click Submit to complete this assessment. Question 1 Given the following class, Book, Write code for the following: 1. [2 pts] a constructor with one

Click Submit to complete this assessment. Question 1 Given the following class, Book, Write code for the following: 1. [2 pts] a constructor with one parameter for price 2. [2 pts) a copy constructor 3. [2 pts] a getter for price 4. [2 pts] a setter for author 5. [2 pts) a toString() method that returns a string with the author and price. public class Book{ private int price; private String author, // your code here For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BI U S Paragraph Arial 10pt ABC ? X T T. --- +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
