mardi 16 janvier 2018

Does Factory Pattern works here, and Can I use it with multiple independent objects?

So I want to write a code that follows the OO Principles for a restaurant menu, like: sandwiches: 3 different types drinks: 5 different types and so on, and I thought using the factory method design pattern is the best? do you agree with that? or is it abstract factory will do it better?

Aucun commentaire:

Enregistrer un commentaire