Reuse: reusing the interface
•When you have created an useful class, you can also create a class which is similar to it, but which provides either a different implementation of the same member functions or also some additional new member functions •This relationship in OOP is called inheritance and is depicted as follows in an UML diagram (which reads: a Derived class is a class inherited from Base, and therefore is a Base (with some more interesting features))
http://www.alessandroogheri.com
Inheritance  is the other mechanism peculiar to object oriented programming languages to improve code reuse.
Inheritance models an “is a” relationship because the Derived class inherits all the data members and member functions of the Base class, and is therefore itself one object of the Base data type too;
The Derived class can override the implementation of some or all of the Base member functions, and can also add some additional member functions or data members.
The way inheritance is used in object oriented programming is to create a more peculiar, more specialized data type starting from an existing one, of which it reuses some characteristics, for example:
An opel astra is an auto, a fiat punto is an auto, an opel astra turbo diesel is a specialized version of an opel astra: