Grokking the Object Oriented Design Interview
Ask Author
Back to course home

0% completed

Vote For New Content
kedi kebba
Aggregation Intepretation

kedi kebba

Sep 30, 2023

From this class diagram, it is depicted that the relationship between an Aircraft and Airline is Aggregation - and therefore an Airline and Aircraft can live independently. I would love to think about this logically, can an airline exist without an aircraft(s) ?

While am revising this, am trying to relate to real world examples so that I understand and better represent the concepts during my interview, so, ,in an interview, are we supposed to think about these situations logically or its all about an idea and demonstrating that you know the concepts and can apply them even if they don't fit in the interviewer's logical view as long as you can explain how you are seeing it from your perspective - because i understand there is not fit it all design solution.

1

0

Comments
Comments
Raphael Reinauer
Raphael Reinauer2 years ago

There are situations where the aggregation relationship could be appropriate, e.g.:

  1. consider situations where an aircraft is manufactured but not yet sold to an airline
  2. or when an airline is selling an aircraft to another airline
  3. or the aircraft is owned by a p...