a) Explain the reasons to use Inheritance. Illustrate by an example that a protected feature is more accessible than a private one and less accessible than a public feature.
Explain the reasons to use Inheritance. Illustrate by an example that a protected feature is more accessible than a private one and less accessible than a public feature.
in C and CPP