uml class diagram for boxing match

38 views Asked by At

I am working on a uml class diagram. I want to know what is the relation between rematch class and match class for a boxing game. Is it inheritance or association?

Rematch happens when there is a tie in the match. But, rematch also has "is a" relation with match.

1

There are 1 answers

0
user6580165 On

In short, both inheritance and association. Inheritance - «rematch also has "is a" relation with match». Association - «Rematch happens when there is a tie in the match»