Question: 2. (a) In the context of Object Oriented Analysis and Design, when designing the structural model, what are the implications of designing a bi-directional

2. (a) In the context of Object Oriented Analysis and Design, when

 

2. (a) In the context of Object Oriented Analysis and Design, when designing the structural model, what are the implications of designing a bi-directional association between two classes in terms of its implementation (as opposed to a uni-directional association). Illustrate your answer using code examples. (b) [10 Marks] (i) Explain the Principle of Least Knowledge. As part of your answer, outline three practical guides to object communication that Demeter promotes. Use UML to illustrate your answer. [9 Marks] (ii) Discuss, using an example of your choosing, how a behavioural model (sequence diagram) could be created which fully and correctly realises a specific use case but does not conform to its structural model (class diagram). [14 Marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a When designing the structural model in ObjectOriented Analysis and Design OOAD the choice between a bidirectional association and a unidirectional association between two classes has implications on ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!