Computer Science, asked by wwwnarensankh6655, 1 year ago

Write notes on protected inheritance or destructor

Answers

Answered by maralsarthak1834
0

Answer:

3Introduction. The capability of one class to inherit the properties from another class is called inheri tance. The class whose properties are inherited , is called Base class or Super class and the class that inherits these properties is called Derived class or Sub class The most important advantage of inheri tance is code reusability. Once a base class is written and debugged, it can be used in various situations without having to redefine it or rewrite it. Reusing exi sting code saves time, money, and efforts and increases a program's reliability.

Similar questions