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...

Describe an advantage of using scwcmd.

What will be an ideal response?

Computer Science & Information Technology

The sequential search algorithm does more work to find a target at the beginning of a list than at the end of the list.

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

Computer Science & Information Technology