What is a class?

Classes are custom types that can contain both variables and functions.



class MyClass
{
    int MyInt;

    void MyFunction()
    {
        // do stuff
    }
};


That’s probably the simplest definition I can give. There is allot to classes however. The only real difference between c and c++ is just the introduction of classes! So I would take it slow and don’t feel bad if you get confused sometimes.

EDIT
Looks like I was beaten and with a much better explanation!