+1 vote
in Class 12 by kratos

Explain class definition with syntax and example.

1 Answer

+6 votes
by kratos
 
Best answer

A class is a structured data type in C++ which is a collection of variables and functions. A class in C++ combines related data and functions together. It makes a data type which is used for creating objects of this type
The syntax of a class definition:

...