If you have defined a class, SavingsAccount, with a public static data member named numberOfAccounts, and created a SavingsAccount object referenced by the variable account20, which of the following will assign numberOfAccounts to numAccounts? Group of answer choices numAccounts = numOfAccounts; numAccounts = SavingsAccount.numberOfAccounts; numAccounts = account20; numAccounts = account20.numAccounts;

Respuesta :

Answer:

Numaccounts=SavingsAccount.numbeOfAccounts

Explanation:

This a static method program from java language because it can be checked without creating an object class.