IBM Support

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

Technote (FAQ)


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

Historical Number

10073

Document information

More support for: Rational Rhapsody
General Information

Software version: Version Independent

Operating system(s): Platform Independent

Reference #: 1323474

Modified date: 27 October 2010