More Definitions

A polymorphic object is a C++ object that presents the appearance of a simple object while behaving polymorphically, but without the hazards of exposing the user of the polymorphic object to the pointers used within its implementation. The user of a polymorphic object does not have to know about any of the details of the implementation, but merely creates an object of the single visible class (the manager class). That object does what the user wants with the help of an object of a worker class, which is derived from the manager class.

The manager/worker idiom is a mechanism that allows the effective type of an object to be determined at run time without requiring the user of the object to be concerned with pointers.[5]

[5] Manager/worker ...

Get C++: A Dialog Programming with the C++ Standard Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.