The named constructor idiom uses a set of static member functions with meaningful names to create objects instead of constructors . Constructors are either private or protected and clients have access only to the public static functions.
The named constructor idiom uses a set of static member functions with meaningful names to create objects instead of constructors . Constructors are either private or protected and clients have access only to the public static functions.