OCL has four built-in types: Boolean, Integer, Real, and String. Table A-1 shows examples of these four types. These examples are typical constants you could encounter in OCL expressions.
Type
Examples
Boolean
true; false
Integer
1; 6,664; -200
Real
2.7181828; 10.5
String
"Hello, World."