Example of final Classes
class privateBox {public: // pseudo-constructor used for creation static privateBox & makeBox(int v)
{ return privateBox(v); }private: // since constructor is private, // cannot create instances directly privateBox (int v) : value(v) { } int value;
privateBox aBox = privateBox::makebox(7);