Solved

Consider the Partial Date Class Below (Method Signatures and Instance

Question 37

Multiple Choice

Consider the partial Date class below (method signatures and instance variables) which represents a day of the year: Consider the partial Date class below (method signatures and instance variables)  which represents a day of the year:   What is wrong with this design?  A) You cannot return this from a method. B) It uses lastDayOfMonth, a private method of the class. C) It has the side effect of changing the Date. D) Since it returns a Date other than this one, the class is not consistent. What is wrong with this design?


A) You cannot return this from a method.
B) It uses lastDayOfMonth, a private method of the class.
C) It has the side effect of changing the Date.
D) Since it returns a Date other than this one, the class is not consistent.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents