In c++, a class is a formalized definition of data and methods from which an object can be instantiated.

Class members are divided into three groups: public, private, and protected.

For example:

class A
{
public:

int GetValue();
int SetValue();

private:

int nValue;

};