Solved

If You Have Defined a Class SavingsAccount with a Public

Question 3

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) None of the above

Correct Answer:

verifed

Verified

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