In the factory method, for example if a variable is equal to 5 the creator should return object A, otherwise object B.
I need the name of a design pattern for: if a variable is equal to 5 the creator should save some data to table A, otherwise it should save other date to table B.
Aucun commentaire:
Enregistrer un commentaire