dimanche 25 juin 2017

Which design pattern should I use and why?

Pharmacy sells medicine from different producers. Each medicine has a name, type (antibiotics, anti-inflammatory, stomach), price etc. However, imported medicine must have a certificate from a lab in the current country. Moreover, if customer purchases an imported medicine, the pharmacy worker has got to query the medicine database and see the data about the counterpart medicine from domestic producers (which are usually cheaper).

How do we develop a class structure to handle medicine data in this pharmacy?

Aucun commentaire:

Enregistrer un commentaire