Multiple Choice
What will have to change if the instance variables month and day of the Date class are replaced by the single instance integer variable dayOfTheYear?
A) The implementation of the methods will change, but the interface will not need to change.
B) The implementation of getDay will not change, but the implementations of the other methods will not change and the interface will not change.
C) The interface will need to change to remove setMonth, but no other parts of the interface will change.
D) All of the interface will need to be changed when the instance variables change.
Correct Answer:

Verified
Correct Answer:
Verified
Q34: Which of the following is a true
Q35: A new class is proposed to collect
Q36: A class named CurrencyTranslator would most probably
Q37: In Java, which of the following mechanisms
Q38: Which of the following constitutes a common
Q40: Why is a static variable also referred
Q41: Mutator methods exhibit which of the following
Q42: To use a public variable or method
Q43: Which of the following does NOT describe
Q44: When are statements in a class-level initialization