What is class using C++?
- A class holds the data and functions that operate on the data.
- It serves as the template of an object.
- A class is used to specify the form of an object.
- It combines data representation and methods for manipulating that data into one package.
- It starts with a 'class' keyword that must be followed either by a semicolon(;) or a list of declarations.
Example:class A
{
public:
int a;
int b;
};