Explain the purpose of a data member.

Fill in the blank(s) with the appropriate word(s).


A class provides a data member (or several data members) when each object of the class must maintain data separately from all other objects of the class. For example, a class called Account that represents a bank account provides a data member to repre- sent the balance of the account. Each Account object maintains its own balance but does not know the balances of the bank’s other accounts.

Computer Science & Information Technology

You might also like to view...

A data structure in which only the top element can be accessed is called a(n) _______ .

a. stack b. linear array c. sorted array d. random array e. none of the above

Computer Science & Information Technology

What is the appeal of 3D animation as compared with 2D animation?

What will be an ideal response?

Computer Science & Information Technology

Once you have _________ a formula, a moving, dashed border surrounds the cell you copied it from. A. pasted B. selected C. copied D. changed

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) ________ is a device that reads information from a magnetic strip on the back of a credit card-like identification card.

What will be an ideal response?

Computer Science & Information Technology