In UML diagram of a class

20072007

In UML diagram of a class

  1. A.

    state of object cannot be represented

  2. B.

    state is irrelevant

  3. C.

    state is represented as an attribute

  4. D.

    state is represented as a result of an operation

Attempted by 9 students.

Show answer & explanation

Correct answer: C

In a UML class diagram, attributes represent the state or data properties of objects. Operations represent behavior.

Explore the full course: Isro