However, it's a little more difficult to differentiate classes and objects in software. This is partially because software objects are merely electronic models of real-world objects or abstract concepts in the first place. In the figures, the class is not shaded because it represents a blueprint of an object rather than an object itself. In comparison, an object is shaded, indicating that the object actually exists and you can use it. The Benefit of Classes Objects provide the benefit of modularity and information hiding.
Classes provide the benefit of reusability.
Bicycle manufacturers reuse the same blueprint over and over again to build lots of bicycles. Software programmers use the same class, and thus the same code, over and over again to create many objects. A class inherits state and behavior from its superclass . Inheritance provides a powerful and natural mechanism for organizing and structuring software programs. This section on Inheritance is a bit more advanced.