in object-oriented programming languages, inheritance is a way to add functionality. object-oriented programming has the notion of classes (and perhaps interfaces). a "derived class" inherits most fields and methods from its parent class. it can modify the behaviour of the parent, by adding new fields and methods, or by modifying existing ones. depending on the programming language used, there may be certain restrictions when extending a class.