In
object-oriented
programing (OOP) inheritance is a feature that represents the "is a" relationship
between different
classes. Inheritance allows a class to have the same
behavior as another class and extend or tailor that behavior to provide special
action for specific needs.