They make your life easier by having a template for objects you will frequently use.
For example:
Lets say you're making a game, and you want to make all spaceship objects have certain characteristics, like Speed, Armor, etc.
You can make a class:
Code:
#include <iostream>
using namespace std;
class SpaceShip
{
protected:
int Armor;
int Speed;
public:
void Accelerate()
{
cout<<"Your spaceship is zoomin\'!"<<endl;
}
};
void main()
{
SpaceShip sp;
sp.Accelerate();
}
Hopefully that should clarify things.