Question: Consider the following class diagram that represents the relationships between people and journals. A person may be one of the contributors or one of the
Consider the following class diagram that represents the relationships between people and journals. A person may be one of the contributors or one of the editors of a journal. Under certain conditions, a person may become a chief editor.
Express the following in OCL:
A journal must have at least three contributors.
A person cannot edit a journal to which he contributes.
A person cannot become chief editor unless he edits at least five journals.
Post condition of the method Person::editJournal
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
