Question: 4. This Question is about Test-Driven Development and OCL Parts a) and b) are based on the following UML class diagram: Borrower id: int
4. This Question is about Test-Driven Development and OCL Parts a) and b) are based on the following UML class diagram: Borrower id: int name: string monthlyIncome : int birthDate: int owner debtor Takes ii) context Loan owns Loan endDate: int Hamount: int monthlyPayment : int iny mustOwnSecurities: securities->forAll(p:property | p.owner = debtor) isSecuredBy securities a) Explain the following constraints expressed in OCL: i) context Loan inv sufficientSecurities: securities. Value->sum() > Amount * 1.5 Property value: int name: string (2 marks) (2 marks)
Step by Step Solution
There are 3 Steps involved in it
Heres a breakdown of the question and how to approach it Part a Explain the OCL Constraints i context Loan inv sufficientSecurities securitiesValuesum Amount 15 Explanation Context This constraint app... View full answer
Get step-by-step solutions from verified subject matter experts
