tags:

views:

46

answers:

1

If I had something like this:

Class diagram

Where would each class go? Does anyone have any links to good examples of MVC?

A: 

OK a bit unclear. So shape hierarchy is model and the Drawing hierarchy is the View? Is that your intention? Can you clarify a bit please?

Selim
No, thats just an example. It's laid out like that because i'm using the bridge pattern but i'm not sure where they would fit in the MVC
John
Ok I see. Why do you think they should be in seperate parts of an MVC implementation? In order to decide on that, we need to know more about the responsibilities/behaviors of each class. Since you say you are using the bridge pattern, I would expect them to be all in the same part of MVC. For example the method names in your classes implies to me that they will be responsible for drawing the interface. Therefore they should all be View parts. Then again I might be wrong, since it is only a hint.
Selim