NCERT solutions for class 12 computer science inheritance is provided here. Solve the NCERT questions related to inheritance in an easy and engaging way. The term inheritance means, the capability of a class to derive characteristics and properties of other class. In inheritance, there are two types of classes.
- Sub Class or the child class- This class inherits properties from the other class.
- Super Class – The class whose properties are inherited by the child class or by the derived class.
One of the most important concepts of inheritance is access specifiers.
Definition- Access specifiers are the keywords in object-oriented languages that set the accessibility of methods, classes and other members.
There are three types of access specifiers