What are the Access control and inheritance ?
Answers
Answered by
3
Answer:
Access Control and Inheritance
A derived class can access all the non-private members of its base class. Thus base-class members that should not be accessible to the member functions of derived classes should be declared private in the base class. ... The friend functions of the base class.
Answered by
1
Answer:
Access Control and Inheritance:
A derived class can access all the non-private members of its base class. Thus base-class members that should not be accessible to the member functions of derived classes should be declared private in the base class. .The derived class can access all the non-private members of its base class. And the base class members that are not accessible to the member functions of derived classes should be declared private in the base class.
Explanation:
HOPE THIS WILL HELP YOU.. PLEASE MARK ME AS THE BRAINLIEST AND FOLLOW ME....
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Science,
4 months ago
Computer Science,
9 months ago
Math,
9 months ago