Classes group related variables (properties) and functions (methods) together. They're the core of object-oriented programming in C++.
.h
header file (for declarations) and a .cpp
file (for definitions).
class ClassName { public: ... };
— define a classvoid methodName() { ... }
— class methodClassName objectName;
— create an objectobjectName.methodName();
— call a methodClassName(Type param) { ... }
— constructor