I have a class with these methods:
public List<Vegetables> getVegetablesFromSupermarket(A a, B b);
public List<Vegetables> getVegetablesFromFarm(A a, C c);
public List<Vegetables> getVegetablesFromNeighbour(D d);
Is there a design pattern that allows for this? Factory? Strategy? Parameters are all different, which makes it a little more complicated.
Aucun commentaire:
Enregistrer un commentaire