Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started