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 parameter variables in the constructor for month, day, and year should be m, d and y.The basic framework of a date class is below: public class Date
{
private int day;
private int month;
private int year;
}
What should the body of the constructor be?
A) day =d;
month =m;
year = y;
B) d= day;
m= month;
y= year;
C) Int day =d;
int month =m;
int year =y;
D) day =1;
month =1;
year = 1990 ;
Correct Answer:

Verified
Correct Answer:
Verified
Q31: Which statement describes a central benefit of
Q32: Which special delimeter is used with the
Q33: A class declaration consists of which of
Q34: Identify the explicit parameter of the withdraw
Q35: We want to create a class that
Q37: Consider the following invocation of the deposit
Q38: Each object of a class has its
Q39: Consider the following method header for the
Q40: Which of the following statements is true
Q41: In the statement below, amount is referred