What is inheritance?
Inheritance is acquiring the properties from base class to derived class, so that we can reuse the code of existing class easily.
Wrapping up of data and behaviors together in a single box is called as inheritance
Having same function name with different number of parameters in same class is called as inheritance
Back To Top