title: Proper way to put array in UML diagram?
body: <p>I am new to UML diagrams, so this may be a very ignorant question though I can't find the answer anywhere.</p>
  
  <p>There is a class Classroom that holds an object of lecture times. Should lecture times be its own class or should it be an attribute of Classroom?</p>
  
  <p>Feel free to critique notation.</p>
  
  <p><strong>Edit:</strong> I have already seen <a href="https://stackoverflow.com/questions/27459257/how-to-represent-an-attributes-data-type-as-an-array-of-objects-on-class-diagra">this post</a> and it has not helped. I would like to know if LectureTime should be a separate class.</p>
  
  <p><strong>Option 1:</strong>
  <a href="https://i.stack.imgur.com/0Wft8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Wft8.png" alt="Option 1"></a></p>
  
  <p><strong>Option 2:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/9xeFd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9xeFd.png" alt="Option 2"></a></p>