C++: how to create a class?

Example:

class MyClass {
};
Classes encapsulate and abstract data for object-oriented programming.

Solution:

class MyClass {
public:
   MyClass();
   ~MyClass();
private:
   int myVariable;
};

Beginner's Guide to C++