Constructors do not have names. ... ... A constructor is used to initialize objects of its class type. Because constructors do not have names, they are never found during name lookup; |
... however an explicit type conversion using the functional notation will cause a constructor to be called to initialize an object. ... A functional notation type conversion can be used to create new objects of its type. [Note: The syntax looks like an explicit call of the constructor. —end note ] [Example:
An object created in this way is unnamed. |