Inheritance allows a class to inherit properties and methods from another class, promoting code reusability.