The class definition

One specific C++ mechanism that makes it possible for you to define new types is a mechanism known as the class definition.

In C++, whenever you define a new class, you are at the same time defining a new type.  Your new type can be as simple, or as complex as you want it to be.

An object of your new type can contain a very small amount of data, or it can contain a very large amount of data.

The operations that you allow to be performed on an object of your new type can be rudimentary, or they can be very powerful.