IBM Support

Is there a way to disable code generation of the Default Constructor?

Question & Answer


Question

Is there a way to disable code generation of the Default Constructor?

Answer

The generation of the default constructor can be controlled by using the property CG::Class GenerateImplicitConstructors.
 
In releases before 4.0 the following needs to be done. First create a default constructor for the class. Second open the properties
for the constructor and change the "Generate" property to "False". Now when you generate code the default constructor will not
be generated for the class.
21 AnswerProduct versionPartner ContentInternal ContentCategoryReference ID

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

10073

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21323474