Information générale
Catégorie:
Programmation Orientée Object
Thanks Steven, David and Paul.
>Basically, you can't delegate without some form of coupling. It's just not possible.
>
>You could mitigate the coupling by introducing a Factory or Broker (a better term here) to provide pointers to models (among other things) but in this particuar case you've just replaced the coupling between one class for another. In other words, the singular Factory or Broker can be used to manage many interobject dependencies. Visual Fox Express used this method and I think it's slick.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement