________ member of the class can not be inherited either in public mode or private mode.

Options
- public
- private
- protected
- Default


CORRECT ANSWER : private

Discussion Board
C++ - Classes and Objects

Private member of the class cannot be inherited either in public mode or private mode.

Protected member can inherited in public mode becomes protected, whereas inherited in private mode becomes private in the derived class.

Public member inherited in public mode becomes public, whereas inherited in private mode becomes private in the derived class.

Prajakta Pandit 01-27-2017 03:45 AM

private members do get inherited

but have restricted access

PW 03-25-2016 11:28 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement