|
|
|
|
- Reason
- Correction
- Examples
- Using a class with mandatory parameters in the structure definition
Error 1035: A class used in a structure must have a constructor without parameter...
You are using a class in a structure. This class owns a constructor that expects mandatory parameters. Two possibilities: - Define optional parameters in the constructor of the class.
- Use no parameter in the constructor of the class but create an initialization method. The parameters will be passed to the method for initializing the class.
Using a class with mandatory parameters in the structure definition Code triggering the error ObjectSize is Structure Height is int Width is int Object_Position is Class1(3,4) END
Possible correction Use an initialization method. ObjectSize is Structure Height is int Width is int Object_Position is Class1() END Â ObjectSize1 is ObjectSize ObjectSize1.Position_object:Class1:Initialization(3,4)
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|