OOP in C++: Classes
C++ implements OOP classes, which look like a refinement of a C struct
.
Class definitions can contain more than just member functions and data members. They can also contain nested classes and structs, type aliases, and enumerations.
Anything declared inside a class is in the scope of that class. If it is public, you can access it outside the class by scoping it with the ClassName:: scope resolution syntax.
You can provide a class definition inside another class definition, a so-called nested class...