RAD Studio VCL Reference
TCGIFactory.Create Constructor

Constructs an object and initializes its data before the object is first used.

constructor Create;
__fastcall TCGIFactory();

Do not create instances of Create. Instead, construct descendants of Create using the new keyword, passing any arguments for the descendant object's constructor.  

Descendant objects usually define a constructor that creates the particular kind of object and initializes its data.

Note: If an exception escapes from a constructor, the object's destructor is called to clean up the failed instance.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!