mardi 29 septembre 2020

Design pattern for methods with totally different implementations

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.

class diagram

Aucun commentaire:

Enregistrer un commentaire