RAD Studio (Common)
Working with a Constructor

You can create as many constructors in a class as needed. 

In design projects, a constructor is created as an operation with the <<constructor>> stereotype.  

In implementation projects, each new constructor is created with its unique set of parameters. In addition to creating parameters automatically, you can define the custom set of parameters, using the Object Inspector.

Tip: You can move, copy and paste constructors and destructors between the container classes same way as the other members.

To define the constructor parameters (implementation projects only):

  1. Select the desired constructor in a class.
  2. In the Object Inspector, click the Params field.
  3. In the text field, type the list of parameters in the former type name. Use comma as a delimiter.

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