asked 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.

answered
User Duke Cyrillus
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.