# Object Constraint Language (OCL) Cheatsheet
The Object Constraint Language (OCL) is a formal language used to describe constraints, business rules, and logic that cannot be expressed using UML diagrams alone. OCL is declarative, meaning it describes what must be true, rather than how to make it true.
Common Use Cases:
- Defining preconditions, postconditions, and invariants
- Defining derived attributes
- Specifying query operations