Inheritance

Inheritance is the process by which one object acquires the properties of another object. This enables hierarchal ( top-down ) classification.

This helps in reducing repetition of code. Similar objects liek a car and a truck have similar properties. Instead of repeating them in both the objects an object, automobiles is created with the common properites and are inherited by both car and trucj objects. Then their unique properties can be added ot them.