Hello. I have a project for queues simulation to do and I have to follow the MVC pattern. My classes until now are: Client, Queue which represent the Model, Controller, GUI which is the View, and the Main class. If I have those 2 classes representing the Model, how should I use them in the Controller class? Or I should make another class Model?
lauraroxi
0
Newbie Poster
Recommended Answers
Jump to PostThere's no one "correct" answer. In simpler cases the controller initialises a model, then initialises the GUI and passes it a reference to the model. The GIU can then interact directly with the model. In more complex systems the controller plays a bigger role in mediating the GUI/model interactions and …
All 4 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lauraroxi
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
lauraroxi
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.