If you had a class Surgery, and you were going to derive a new class BrainSurgery, but you wanted all of the Surgery’s members in BrainSurgery to be private, how would you accomplish this task?

A Make all the Surgery members private, then use class BrainSurgery : public Surgery.
B. This is not possible in C++.
C. You would need to write a brand new class and copy the Surgery code into it.
D. Use the private base class specifier, class BrainSurgery : private Surgery.


D. Use the private base class specifier, class BrainSurgery : private Surgery.

Computer Science & Information Technology

You might also like to view...

A specific item of data or information located within a table is called a ________

A) field B) key C) report D) record

Computer Science & Information Technology

Suppose x = 10 and y = 20. The value of the expression ((x >= 10) && (y <= 20)) is true.

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

Computer Science & Information Technology

A ____ is intended to contain user accounts from a single domain and can also be set up as a member of a domain local group in the same or another domain.

A. domain security group B. global security group C. universal security group D. domain local group

Computer Science & Information Technology

To move up one paragraph, press the ____ key(s).

A. F1 B. ALT+UP ARROW C. UP ARROW D. CTRL+UP ARROW

Computer Science & Information Technology