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.


Answer: C

Computer Science & Information Technology

You might also like to view...

What is the terminology for a command that is embedded in an HTML document and parsed by a server prior to being sent?

What will be an ideal response?

Computer Science & Information Technology

A content control that allows the user to select a date from a calendar

a. Legacy control b. Calendar control c. Date Picker content control

Computer Science & Information Technology

To rotate an image clockwise means to turn the image to the right

Indicate whether the statement is true or false

Computer Science & Information Technology

Which pieces should go in the front of a portfolio?

What will be an ideal response?

Computer Science & Information Technology