The object knows how to do the job. Inheritance Inheritance is a mechanism for sharing similarities among classes while preserving their differences. In the OO terminology, the individual pieces of data are known as attributes while the operations that objects carry out are known as methods . Pluggability stems from the concepts of abstraction and encapsulation. The programming libraries on the market are nowadays class libraries .
Classes know how to create their instances - objects.
If one wants to modify class behavior a little, there is inheritance and polymorphism. Of course, one can always design one's own classes from scratch. Here's one possibility. Implemented as an instance of a class Info, for example, information will know everything about itself. An object of the ComputerUser class will reside on my machine.