I’m making an UML class diagram and I don’t know how to do this:
I have a content that has a file. Both, content and file, are represented as classes. I’ve put an aggregation between content and file. But I don’t know if is necessary to put an atribute inside content to represent file. Is necessary?
Thank you.
You can create associations in two ways:
So in your case you do not have a reason to add the field after you created an aggregation (which is a type of an association).