220k views
1 vote
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;

1 Answer

2 votes

Answer:

Numaccounts=SavingsAccount.numbeOfAccounts

Step-by-step explanation:

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

User Duke Cyrillus
by
6.2k points