vendredi 29 mars 2019

Can’t understand controller part of MVC

What exactly are those controllers? We were asked to build an ATM in Java for school project, and part of our design is:

  1. We have accounts that stores most of informations
  2. We have users that can make operations for their own accounts and stores some minor informations. (Also we have atm class to store users and make some toplevel changes)
  3. We have userInterface to catch inputs and use controllers.

Am I right that our accounts are models, interfaces are views and users are controllers?

Thanks a lot to address my problem,!

Aucun commentaire:

Enregistrer un commentaire