Solved

Consider the Method in the Following Code Snippet: Public Void

Question 22

Multiple Choice

Consider the method in the following code snippet: public void getRewardPoints()
{
System.out.println("Your Reward Points balance is now " + pointBalance) ;
}
Which of the following statements would not be a valid criticism of the design of this method?


A) It violates the design rule of minimizing the coupling of classes.
B) It assumes that the message will always need to be in English.
C) It might not work in an embedded system.
D) It should not be a separate method since it is only one line long.

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