UML diagrams can contain custom types, including array objects, but they generally do not exist as in-class attributes. Because the type contained in the pointer or vector itself should also be an entity, another representation is more appropriate. The two can be connected through relationships.
A class containing objects of another class is usually composition or aggregation. Tires and cars are a combination relationship, and wild geese and a flock of geese are an aggregation relationship.
UML diagrams can contain custom types, including array objects, but they generally do not exist as in-class attributes. Because the type contained in the pointer or vector itself should also be an entity, another representation is more appropriate. The two can be connected through relationships.
A class containing objects of another class is usually composition or aggregation. Tires and cars are a combination relationship, and wild geese and a flock of geese are an aggregation relationship.