Computer Science, asked by jaiprakash99, 6 months ago

What are the Access control and inheritance ?

Answers

Answered by Anonymous
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 ajitdas197
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