To begin with, C++ is an object oriented programming language. Thus, as the name suggests, the entire functionality of C++ revolves around the concept of objects and classes. Classes are one the pivotal features of the C++ language, and these are often user-defined.
A class can be defined, in simple terms as a collection of objects having a similar set of characteristics. A class holds its objects, which are the building blocks of the class, and also the subsequent functions within it. The data and functions within a class are called members of the class.
A class essentially defines the outline for it’s objects. Thus, basically an object is created from a class. Objects of a class are declared with exactly the same sort of declaration that is used to declare variables of basic types.