CS Electrical And Electronics
@cselectricalandelectronics

What is public mode inheritance in Cpp?

All QuestionsCategory: Cpp LanguageWhat is public mode inheritance in Cpp?
CS Electrical And Electronics Staff asked 4 years ago

I need short information.

1 Answers
CS Electrical And Electronics Staff answered 4 years ago

If we derive a subclass from a public base class. Then the public member of the base class will become public in the derived class and protected members of the base class will become protected in the derived class.