When is an enum either association, aggregation or composition?
For me a enum is a part of a class in the whole lifespan of the class - hense I would depicture it as Composition. However in your examples on this page you only depict them as associations. I find it very confusing.
Dusan Rodina - softwareideas.net
21 May 2024 8:54:44
RE: How to do it?
I believe that in most cases, an Association or a Dependency is more suitable because Enums are global definitions that can usually exist independently of the class lifespan.
Keith 2 January 2022 6:47:39
Cool
Dusan Rodina - softwareideas.net 3 January 2022 10:04:16
RE: Cool
Noura 18 February 2022 15:46:20
Good
Dusan Rodina - softwareideas.net 18 February 2022 15:50:15
RE: Good
Abdou 26 October 2023 3:29:58
GOOD
Dusan Rodina - softwareideas.net 26 October 2023 7:17:20
RE: GOOD
lars 19 May 2024 14:03:12
How to do it?
Dusan Rodina - softwareideas.net 21 May 2024 8:54:44
RE: How to do it?