I can't find an exact answer to this question when drawing a class diagram.
I have a class, that contains properties, and a method for external access to the data associated with that property.
It will exist within two other classes in the diagram as the datatype to the other property, the other class will hold an array of this class' instances.

I was unsure how to represent this in the diagram, my first thought was a compositional relationship but that doesn't seem quite right.