Can someone explain class in c++ to somebody who doesn't know much about c++?

When I was a beginner, comparisons of classes to real world objects always got me a bit confused. A class can, but often isn’t such a representation. I found it much more useful just to think about a classes on an abstract level. It’s a custom type that has a set of variables (that can be either primitive like float, int etc. or other classes), and a set of functions that act upon those variables. Nothing less, nothing more.