23 July 2021 1:48:44 Dusan Rodina - softwareideas.net

Add Comment

Keith 2 January 2022 6:47:39

Cool

I am a CS major and just want to say this helped me a bunch thank you. God bless

Dusan Rodina - softwareideas.net 3 January 2022 10:04:16

RE: Cool

Thank you for the positive feedback.

Noura 18 February 2022 15:46:20

Good

The explanation is clear and simple to understand. Thank you

Dusan Rodina - softwareideas.net 18 February 2022 15:50:15

RE: Good

You're welcome!

Abdou 26 October 2023 3:29:58

GOOD

Thank you so much the examples are very helpful!!

Dusan Rodina - softwareideas.net 26 October 2023 7:17:20

RE: GOOD

You are welcome!

lars 19 May 2024 14:03:12

How to do it?

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.