Question: Define a default constructor that initializes the fields year ( integer ) and author ( string ) with the default values - 1 and Undefined,

Define a default constructor that initializes the fields year (integer) and author (string) with the default values -1 and "Undefined", respectively.
Ex: If the input is 2008 Khan, then the output is:
Default values:
Year: -1, Author: Undefined
After mutator methods:
Year: 2008, Author: Khan
Note: The class's print() method is called before and after the input is passed to the setters.
Play.java

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!