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...
The web is made up of __________, which links text or other objects such as images
a.Connectors b.Internet Exchange Points c.Hypertext d.VoIP
Computer Science & Information Technology
When a parity bit is assigned to ASCII, the Hamming distance becomes 4.?
Answer the following statement true (T) or false (F)
Computer Science & Information Technology