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.

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.


Leave a Reply