1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Zigmanuir [339]
3 years ago
7

If you have defined a class named SavingsAccount with a public static data member named numberOfAccounts, and created a SavingsA

ccount object referenced by the variable account20, which of the following will assign numberOfAccounts to numAccounts?
A) numAccounts = SavingsAccount.numberOfAccoun ts;B) numAccounts = numberOfAccounts;C) numAccounts = account20.numberOfAccounts;D) None of the above, you cannot reference a static data member.
Computers and Technology
1 answer:
Anvisha [2.4K]3 years ago
3 0

Answer:

numAccounts = SavingsAccount.numberOfAccounts

Explanation:

In object oriented programming, when you have created an object of class, you can create several instances (objects) from that class by referencing the className.classFeild. In this instance SavingsAccount is the class name and

numberOfAccounts is a feild (or data member). to create a new numAccount, we use the syntax as above in the answer

You might be interested in
How to do GCD on small basic?​
Alekssandra [29.7K]
The other person is right
7 0
3 years ago
Draw a flow chart to print gratest number among two .​
bagirrra123 [75]
MYbe show a picture next time so we can see what the problem is about ?
7 0
3 years ago
Read 2 more answers
A firm has a huge amount of individual customer data saved in different databases. Which of the following can be used to integra
Rama09 [41]

Answer:

C. CMR systems

Explanation:

CMR or customer relationship management is a strategy that uses data analysis of customers to manage the interaction between a company and current and potential customers.

It analyses the data of client from different channels like wesites, email, social media,telephone log etc, describing and predicting potential decisions to be made to enhance customer service and acquisition.

6 0
3 years ago
The commands available from a menu do not change. True or false
jeka94

i believe this will be false


3 0
3 years ago
Read 2 more answers
Which of the following controls computer memory?
Bogdan [553]
Operation system (OS)
4 0
3 years ago
Other questions:
  • What is code reuse meant to do?
    9·1 answer
  • Two or more computers that are linked together are called which of the following
    10·1 answer
  • One of the most studied computational problems is the ordering of a collection of values. Ordering is important because many pro
    15·1 answer
  • Why is there more content on youtube in 4k then there is on cable, satellite, and digital tv combined?
    6·2 answers
  • Which of the following is an example of a direct payment subsidy?
    12·1 answer
  • Which member of the restaurant and food/beverage service career is mostly likely to plan menus and direct worker
    6·2 answers
  • You can install several printers on your machine, but at least one must be the _______ printer.
    6·1 answer
  • Write a program that performs the following tasks: Display a friendly greeting to the user Prompt the user for the value to conv
    13·1 answer
  • Siapa mahapatih brainly.com atau yg disebut Brainly Amerika Serikat ?​
    5·1 answer
  • Anyone know how to fix black screen of death on computer​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!