🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
Attribute with class type

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

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

Therefore, it's forbidden by design.

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