Multiple choice technology web technology

In the UML notation, an object can be represented by

  1. A comment or explanatory note associated with a class

  2. A rectangular box with the object name and the constraint "{object}" immediatly following it

  3. A rectangular box with the name of the object in the box.

  4. A rectangular box with the name of the object, a : and the class name that the object belongs to.

  5. A thin vertical line with key method calls shown as outward arrows .

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In UML object diagrams, an object is represented as a rectangular box showing the object name, a colon separator, and the class name (e.g., myObject:MyClass). The object name may be underlined to indicate it's an instance. Option D correctly describes this notation.