When should base class members be declared protected?

a. When all clients should be able to access these members.
b. When these members are used only by member functions of this base class.
c. When these members should be available only to derived classes (and friends), but not to other clients.
d. The protected access specified should never be used.


c. When these members should be available only to derived classes (and friends), but not to other clients.

Computer Science & Information Technology

You might also like to view...

What clause of the ISO 12207 standard outlines the measurement process?

A. 6.3.4 B. 6.3.5 C. 6.3.6 D. 6.3.7

Computer Science & Information Technology

Machine architecture where each instruction is simple and executes in one machine cycle is called a ______ computer.

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

Computer Science & Information Technology

A _________ is a collection of related data.

A) ?record ? B) ?file ? C) ?database ? D) ?field

Computer Science & Information Technology

Macros can be performed with a single mouse click, a keyboard shortcut, or:

A) when a workbook is closed. B) when a workbook is opened. C) in a file. D) a double mouse click.

Computer Science & Information Technology