Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class.
class is user defined data type that contains or hold both data and member function.it is the collection of different data types