Objects separated from classes
The product separates objects from classes in diagrams.
There are two types of objects:
- Objects with explicit object types specifies only the features that are relevant for the instance. An explicit object instantiates a "normal" class from the model.
- With objects with implicit types , you can specify other features that belong to classes, such as attributes, operations. An implicit object is a combination of an instance and a class. Technically, the class is hidden. Rhapsody® Developer for Java™ does not support objects with implicit types.
An object is basically an instance of a class; however, you can create an object directly without defining a class. Objects belong to packages and parts belong to structured classes; the browser separates parts and objects into separate categories.
By default, Rhapsody creates objects with implicit type. In the object model diagram, an object is shown like a class box, with the following differences:
- The name of the object is underlined.
- The numeric value in the diagram indicates the multiplicity.
The following example shows an object of explicit type: