Answer :

Declaring a member as protected in the base class provides access to that member in the derived classes but not to anyone else.

Base class and derived classes are concepts of inheritance in the paradigm of Object Oriented Programming. Inheritance is the process in which a new class (called derived class) is created from an existing class (called base class).

When a drive class is created from the base class, it has access to some members of the base class. There are three types of access specifiers to declare members in the base class in order to provide their access in the derived classes.

The first is declaring a member as private. Private members of the base class cannot be accessed by anyone, even not by the derived classes. The second is declaring the base class members as public. Public members can be accessed by anybody including derived classes. The third type is declaring members as protected. Protected members of the base class have accessibility only in derived classes.

Thus, when a member is declared as protected in the base class, it gives access to that member in the derived classes but not to anyone else.

You can learn more about access specifier at

https://brainly.com/question/28289695

#SPJ4