How to get the total salary of an employee in OCL?
In the standard of OCL, https://www.omg.org/spec/OCL/2.4/PDF p. 7, an UML class diagram defines a class association between a Person and a Company called Job with a salary attribute. Cardinality is multiple on both sides (0..*).
Object Constraint Language (OCL) for Stack in java.util package
I have an exam coming up and I’m looking at past papers to get some ideas of what to expect.
I’m a bit stuck on the following one and would really appreciate if someone could give some example answers.