POO in Java - World Cup Modeling

Asked

Viewed 184 times

2

I am entering the universe of Object Orientation and, moved by curiosity, I decided to try to simulate the organization of a World Cup through these concepts.

Well, I’m having some difficulties with the classes and I would like your help so that, through the analysis of the modeling below, you can guide me.

ModelagemCopa - Lucidchart

  • 1

    Have you ever tried to implement?

1 answer

0

A group contains selections and not the other way around, so the composition should be "reversed".

A group also contains matches, so an aggregation is missing.

Plus, I think you’ve applied the concepts well.

  • I thought about it, but I believe that in this way, there is no relationship between "Group" and "Departure" at the end of the Group Phase. That is why I considered that a Selection plays a Match because, thus, the qualified selections continue with the same starting criterion.

  • You can make a starting interface and then implement it in the group stage, playoffs, semi-finals and such.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.