Derived class is a accessed in object oriented programming
Derived class is an accessed in object oriented programming base class with protected.
Protectedmembers similar to private members, can be accessed only by code in the same class or struct, or in a class that is derived from that class. Public, private and protected are called as access modifiers in object-oriented languages.
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. Constructors, destructors and copy constructors of the base class.
Derivation allows us to derive a class, called a derived class, from another class, called a base class. In the declaration of a derived class, we list the base classes of the derived class.