2075 2

CSC166 ยท 2075 ยท 10 marks

Depict the difference between private and public derivation. Explain derived class constructor with suitable program.

Depict the difference between private and public derivation. Explain derived class constructor with suitable program.[10]

Object Oriented ProgrammingChapter 5: InheritancePublic and Private Inheritance

--- When a derived class inherits from a base class, the visibility of inherited members in the derived class depends on the type of derivation used. Feature Public Derivation Private Derivation --------- Base class public members Remain public in derived class Become private in derived class Bas...