A client changing the values of private data members is:

a. Only possible by calling private member functions.
b. Possible using public functions and references.
c. Never possible.
d. Only possible if the private variables are not declared inside the class.


b. Possible using public functions and references.

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. A queue is a last-in/first-out structure. 2. A collection is a data structure for holding elements.

Computer Science & Information Technology

SGML is device-independent and system-independent.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The vi command Ctrl g

a: places the cursor at the end of the file b: places the cursor at the top of the file c: cancels last changes on the current line d: scrolls the cursor down one page e: displays the line number of the current line

Computer Science & Information Technology

Answer, and explain: For large lists, which of the following is true of inserting a new item into a linked list compared to insertion in an array? What of small lists?

a) more efficient. b) less efficient. c) about the same. d) depends on the size of the two lists.

Computer Science & Information Technology