Which of the following statements about inheritance is true if memberAccessSpecifier is protected?
A) The private members of the base class become protected members of the derived class.
B) The derived class can directly access any member of the base class.
C) The public members of the base class become protected members of the derived class.
D) The protected members of the base class become private members of the derived class.
Correct Answer:
Verified
Q21: To _ a public member function of
Q22: The _ members of an object form
Q23: In OOD, a program is a collection
Q24: _ is the ability to combine data,
Q25: Consider the following class definitions:Which of the
Q27: The preprocessor directive _ is used to
Q28: In _ (aggregation), one or more members
Q29: What is the output of the
Q30: The constructor of a derived class cannot
Q31: If the corresponding functions in the base
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents