Solved

If You Have Defined a Class, SavingsAccount, with a Public

Question 44

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:

verifed

Verified

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

Related Questions