uml - Is in a program with MVC a model and a view and a controller needed for every class that has some outputs? -
i'm net uml
, mvc-pattern
, don't know how bring program. i'm want build slotmachine , i'm trying bring uml slotmachine life. don't know if need 1 controller, 1 view , 1 model game or many of them different classes. following short experiment in uml: screenshot of uml. maybe coul explain me.
thank you!
for building mvc app, first have choose specific mvc approach (because there many, see book chapter mvc), , make uml class diagram designing model classes. don't use uml designing views , controllers of app because based on model classes.
typically, each model class, such game
, need 1 controller , 4 'views' (or better user interfaces): 1 each of 4 crud data management use cases. have written 2 tutorials show how use simple mvc architecture approach:
Comments
Post a Comment