Inheritance allows for the creation of class hierarchies where subclasses inherit properties from parent classes. A superclass defines common traits shared among related items, which subclasses can then inherit and extend with their unique attributes. For example, different types of bicycles like mountain bikes, road bikes, and tandems share basic bicycle characteristics but have distinguishing features. Inheritance establishes a parent-child relationship where subclasses inherit all data and methods from the superclass.