In private inheritance a protected data member of the base class will be treated in derived class as
Answers
Answered by
0
Answer:
protected inheritance makes the public and protected members of the base class protected in the derived class. private inheritance makes the public and protected members of the base class private in the derived class.
Answered by
0
In private inheritance, a protected data member of the base class will be treated in the derived class as a private data member.
- The ability of a class to acquire properties and features in another category is called Inheritance. Inheritance is one of the most important aspects of Object-Oriented Programming.
- Inheritance is the process by which one category inherits the attributes and methods of another category. Category features and methods inherited are known as the parent category. And the category that inherits property in the parent category is the Child category.
- Interestingly, in addition to the inherited property and methods, a children's classroom can have its own facilities and methods.
Similar questions