I have the following sequence diagram to add a student to a list of students. the implementation could be like
List<Student> Students = new List<Student>(); Students.Add(aStudent);
I drew the following sequence diagram for it:
In this diagram
Students is actually the list of students mentioned in the code.
I would like to know is it a correct way to show a list of objects as a object lifeline? I mean as a conceptual and analysis approach and also at syntax.
For example maybe the
List<Student> could be the object of a general class named
Storage which is responsible to store and retrieve a list of objects like a database...