-1

I'm prepping for an interview in which I need to model a real life scenario in UML. I'm trying to get some practice in. I've created the following diagram of a Golf Club and I'm wondering if you I could get some feedback on any major flaws.

Any obvious mistakes?

https://i.stack.imgur.com/4nlDw.jpg

Are my relationships right, I am unsure when to use Association or composition.

Malorrr
  • 11
  • 1
  • 6

1 Answers1

0

If you were one of my students, I would say some remarks (I hope that will help you to prepare your interview):

  • this is a model for analyze not for implementation (this is not an issue but, for me, it has to be said)

  • is it sure that a course will never get more than 18 holes ?, can't you have hole without course ? (for practice ?)

  • a club must have one course and one course only, is it normal ?

  • you choose to show some attributes and methods why these ones ? (I feel that when you implement the model you will need more attributes and methods)

  • it seems to model persistent data what's about others classes ?

About association and composition, there are a lot's of questions on stackoverflow, see for example : Composition in UML

granier
  • 1,739
  • 13
  • 25