lundi 12 décembre 2016

what is called a design pattern similar to factory method which doesn't return an object but calls a method?

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