dimanche 15 décembre 2019

How to observer nested objects using MVC design pattern

I am trying to use the MVC design pattern to observe objects within the model class. for example the model class represents a building which has x number of floors and each floor has a door, how would you observer the door which is inside the floor object. How would the view objects reach the door object to register themselves as observers?

Aucun commentaire:

Enregistrer un commentaire