Exemplo n.º 1
0
        public static void main(String[] args)
        {
            Student model = retriveStudentFromDatabase();

            StudentView view = new StudentView();

            StudentController controller = new StudentController(model, view);

            controller.updateView();

            controller.setStudentName("Vikram Sharma");

            controller.updateView();
        }
 public StudentController(Student model, StudentView view)
 {
     this.model = model;
     this.view  = view;
 }