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;
Correct Answer:

Verified
Correct Answer:
Verified
Q8: When are local variables initialized?<br>A)Local variables are
Q25: What is the return type of a
Q75: We want to create a class that
Q76: Choose the method header that goes with
Q79: Assume the method below has been added
Q80: Instance variables that are object references are
Q84: What do static variables belong to?<br>A) a
Q85: Consider the following method comment and method
Q96: Which of the following declares a sideLength
Q100: Which of the following is an instance