next up previous
Next: Controller Up: Models, Controllers and Views Previous: Models, Controllers and Views

Model

User's models must derive from this base class. Models must be used to hold the data of the application. They can be connected to observers (like Constrollers) by a mechanism discussed by section 4.2. It is important to note that apart from the registration phase, the model do not know that there exists a set observers connected to it.

All the code strictly related to the data of the application (i.e. not related to any view of those data) will live in the model class.



Roberto Cavada 2004-11-16