I would like to hear what all relationships exists here. I assume that here exists relationships like dependency and aggregation with 1-1 multiplicity?
public class Main {
public Main() {
Model model = new Model();
View view = new View();
Controller controller = new Controller(view, model);
}
public static void main(String[] args) {
new Main();
}
}
public class Controller {
private Model model;
private View view;
public Controller(Model model, View view) {
this.model = model;
this.view = view;
}
}
public class Model { ... }
public class View { ... }