View Full Version : What’s the benefit of using inheritance?

Shivangi Panwar
06-18-2016, 04:00 AM
What’s the benefit of using inheritance?

08-02-2016, 09:47 PM
The inheritance is the process allow a class to use properties and methods of another class it have benefit we see in the following way,
Easy to identify the error
Facility to use public method of base class without rewriting the same
3.Data hiding:
The base class decided to some data in private so it cannot be altered by derived class
4.Code compatibility:
Avoid of typing code again and again.