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();

b. SavingsAccount.getNumberOfAccounts();

Computer Science & Information Technology

You might also like to view...

Which of the following functions assigns the same rank for duplicate values?

A) RANK.AVG B) RANK.DUP C) RANK.EQ D) RANK

Computer Science & Information Technology

VBA uses different colors to mean different things.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology