Ask a Teacher



WHAT IS CLASS

In C++,class is a data type that is used to create objects.The characteristics are represented by data members and behaviour are by functions.

The C++ programming language allows programmers to separate program-specific data types through the use of classes. Classes define types of data structures and the functions that operate on those data structures. Instances of these data types are known as objects and can contain member variables, constants, member functions, and overloaded operators defined by the programmer. Syntactically, classes are extensions of the C struct, which cannot contain functions or overloaded operators.


comments powered by Disqus