1. What is inheritance ?
Inheritance is an important means of object-oriented reuse . A class is defined by inheritance. Inheritance is the modeling of the relationship between types, sharing common things, and implementing things that are essentially different.
Through reuse , everything in the parent class becomes part of the child class .