Given the class declaration, class D : public class B {/*…*/}; Which of the following is true?
a. public members of B become public members of D
b. private members of D become public members of B
c. protected members of B become protected members of D
d. private members of B become public members of D
e. private members of B are inaccessible in D.
Parts a) c) and e) are correct.
Explanation: Part b) reverses the idea of inheritance. Part d) is wrong.
You might also like to view...
What happens if a non-integer value is typed? What if the argument is omitted?
Write a program called twice that takes a single integer argument and doubles its value: $ twice 15 30 $ twice 0 0 $
A(n) _________ is a formal access control methodology used to assign a level of confidentiality to an information asset and thus restrict the number of people who can access it.
A. security clearance scheme B. data recovery scheme C. risk management scheme D. data classification scheme