samedi 24 juin 2017

MVC pattrern. Which class is the entry point?

MVC pattern separates data model, GUI view and event handling by controller. One can make Model the entry point

public class MyModel {

    private Integer value;
    MyView view = new MyView(this); 
    MyController controller= new MyController (this);
    //MyController controller= new MyController (this, view);
    }

Or, one can start with Controller and create model and view from controller.

Which class should be be called first and create other two classes?

Aucun commentaire:

Enregistrer un commentaire