Solved

Consider the Method in the Following Code Snippet: Public Void

Question 28

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