That is why we have structured these tutorials to get everyone to practice this skill so that your first few (not-so-good) diagram drawing experiences happen in the tutorial, not in an interview or during your internship.
Note the following:
[Recommended] Do the following before attempting the tutorial tasks
Question adapted from past exam paper.
(a) Do the following exercise similar to the previous one.
(b) How would you update the diagram if the PersonList
class was updated as follows?
class PersonList{
void addPerson(Person p){
add(p);
}
void add(Person p){
//...
}
}