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

Computer Science & Information Technology

You might also like to view...

The Subtotal feature creates a(n) ________, a hierarchical structure of data

Fill in the blank(s) with correct word

Computer Science & Information Technology

How many items can the Office Clipboard hold?

A) 1 B) 12 C) 24 D) 36

Computer Science & Information Technology

A graphics CAD/CAM workstation requires ________

a. A powerful processor b. Less RAM than office computers c. Any average processor d. USB 1.0

Computer Science & Information Technology

What keywords does Python use for Boolean values?

A. Yes, No B. On, Off C. True, False D. Set, Unset

Computer Science & Information Technology