private derivationif no specific derivation is


Private derivation

If no specific derivation is listed, then a private derivation is supposed. If a new class is derived privately from its parent class, then:

  • The private members inherited from its base class are inaccessible to new member functions in the derived class. This means that the creator of the base class has absolute control over the accessibility of these members, and there is no way that you can override this.
  • The public members inherited from the base class have private access privilege. In other words, they are treated as though they were declared as new private members of the derived class, so that new member functions can access them. Though, if another private derivation occurs from this derived class, then these members are inaccessible to latest member functions.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: private derivationif no specific derivation is
Reference No:- TGS0309429

Expected delivery within 24 Hours