Inheritance allows a class to use properties and methods of another class.
Inheritance enables code reuse by allowing a new class (subclass) to inherit the fields and methods of an existing class (superclass). For example, if you have a superclass 'Product' with methods like 'getPrice()', a subclass 'Book' can inherit these methods without needing to redefine them.