Multiple Choice
We want to create a class that represents a date.A date has a day, month, and year.For example, the date March 16, 2014 has the day 16, month 3, and year 2014.The basic framework of a date class is below: public class Date
{
private int day;
private int month;
private int year;
}
The default date will be set to January 1, 1990. What should the body of the constructor with zero parameters be?
A) day = 1;
month =1 ;
year = 1990;
B) Int day =1;
Int month =1;
int year =1990 ;
C) int day =0;
Int month =1;
Int year = 1990;
D) Int day =1;
int month =1;
Int year =0;
Correct Answer:

Verified
Correct Answer:
Verified
Q59: If a method has two parameters, one
Q60: Complete the following tester program by choosing
Q61: The private implementation of a class consists
Q62: Descriptive text used to communicate design and
Q63: When drawing complex shapes, what is used
Q65: When using index cards to help with
Q66: Given this method comment, fill in the
Q67: The class constructor always has the same
Q68: What will be output from the following
Q69: What is the name of the instance