Attribute with class type

Why can't I create an attribute with with a Class type?

Because having an attribute with a class type is an object reference, i.e. pointing from one object to another - which is a association.

Therefore it's by design forbidden.

Note: Everyone asks this question during their work with modelling, at some point.

This page was edited 72 days ago on 07/09/2024. What links here