Overview |
A parameter is an attribute with the parameter behavioral flag. Parameters are input attributes to the class that you must define in order for them to be created. Classes generally have parameters for use in customizing how the class is used. Lower-level classes like lines and arcs tend to require you to specify values for parameters, while higher-level classes like the ones you create may have only optional parameters. Parameter values are what distinguish one instance of a given class from another instance of the same class.
In the first attribute definition: (Number Parameter) door_height: 84;
Number is the data type.
Parameter is a behavior type.
door_height is the attribute name. The colon after door_height says reference Door_Height's value.
84 is the rule or formula for the default value. The semi-colon terminates the statement.