Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a default constructor that initializes the fields numWords ( integer ) , year ( integer ) , and author ( string ) with the

Define a default constructor that initializes the fields numWords (integer), year (integer), and author (string) with the default values -1,-1, and "Incomplete", respectively.
Ex: If the input is 436002004 Baca, then the output is:
public void setDefaultValues(){
int numWords =-1;
int year =-1;
String author = "Incomplete";
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago