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;
}
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
Q28: The use of an instance variable name
Q30: When you declare a method, you also
Q34: Identify the explicit parameter of the withdraw
Q69: If the CarComponent class had the call
Q70: We want to create a class that
Q70: What statement is used to specify the
Q73: What does an object store its data
Q74: Consider the following method header for the
Q75: We want to create a class that
Q76: Choose the method header that goes with