C++ Example of anonymous Class
The example class contains an unnamed nested class that defines two data fields. An instance of this class is held by the field named data in the outer class:
class Example { // C++ example of anonymous class public: private: class { public: int x; int y; } data;