My teacher assigned an exercise which consists in translating (in the best possible way) a sequence diagram to Java code.
This is the sequence diagram:
And this is my attempt at solving this:
import java.util.ArrayList;
import java.util.List;
class Seminar {
private int getMark() {
return calculateMark();
}
private int calculateMark() {
return 10;
}
}
class Student {
private List<Seminar> _seminars = new ArrayList<>();
public List<Seminar> getSeminars() {
return _seminars;
}
}
class TranscriptBuilder {
public void New(Student student) {
}
}
But I couldn't finish TranscriptBuilder as I couldn't find anything about <<system>> and what it means. Any suggestions, please?
