Multiple Choice
If you have defined a class, SavingsAccount, with a public static method, getNumberOfAccounts, and created a SavingsAccount object referenced by the variable account20, which of the following will call the getNumberOfAccounts method?
A) account20.getNumberOfAccounts() ;
B) SavingsAccount.getNumberOfAccounts() ;
C) getNumberOfAccounts() ;
D) SavingsAccount.account20.getNumberOfAccounts() ;
Correct Answer:

Verified
Correct Answer:
Verified
Q39: A declaration for an enumerated type begins
Q40: Given the following declaration: enum Tree (
Q41: A single copy of a class's static
Q42: CRC stands for _.<br>A) Class, Recyclability, Collaborations<br>B)
Q43: If a class has a method named
Q45: When an object is passed as an
Q46: You can declare an enumerated data type
Q47: Which of the following is not true
Q48: The key word this is the name
Q49: When a field is declared static there