Will private members of base class can be inherited?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: Cpp LanguageWill private members of base class can be inherited?
Chetan Shidling Staff asked 6 years ago

I need short information.

1 Answers
Chetan Shidling Staff answered 6 years ago

No, we can not inherited the private members. Therefore the private members of a base class never become the members of its derived class.