0
2.6kviews
Describe with example the concept of constraint on link.

Subject: Object Oriented Modeling and Design

Difficulty: Medium

Marks: 4 Marks

1 Answer
0
79views

Constraints:

  • A constraint represents some condition, restriction or assertion related to some element (that owns the constraint) or several elements.
  • Constraint is usually specified by a Boolean expression which must evaluate to a true or false.
  • Constraint must be satisfied (i.e. evaluated to true) by a correct design of the system.
  • Constraints are commonly used for various elements on class diagrams.
  • Constraints are functional relation between entities of an object model.
  • Entity includes objects, classes, attributes, links and associations.
  • A constraint restricts the values that entities can assume.
  • Simple constraints may be placed in object models and complex may be in functional model.

Example:

Constraint:

enter image description here

Please log in to add an answer.