There are a lot of writings about the difference between these design patterns: Template method, Factory method and Bridge design pattern. Anyway I have difficulty to select the right one for this context. I want to define same methods but with a different implementation based on the platform. I am tempted to use the Template method but there aren't shared implementation.
Aucun commentaire:
Enregistrer un commentaire