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
Q88: When drawing complex shapes, provide a(n) _
Q89: Consider the following code fragment from the
Q91: What will be output from the following
Q91: In the statement below, amount is referred
Q92: Which of the following corresponds to the
Q95: If the CarComponent class had the call
Q96: Consider the following invocation of the deposit
Q96: Which statement is true about the following
Q97: Fill in the third line of this
Q98: Assume the method below has been added
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents