Google News
logo
CPP - Interview Questions
what is a class in C++?
The class is a user-defined data type. The class is declared with the keyword class. The class contains the data members, and member functions whose access is defined by the three modifiers are private, public and protected. The class defines the type definition of the category of things. It defines a datatype, but it does not define the data it just specifies the structure of data.
 
You can create N number of objects from a class.
Advertisement