samedi 7 mai 2016

Factory Method Design Pattern `static` modifier must need or not

I'm studying about Design patterns. I have studied about Factory Design Pattern in java and i have Some things I didn't understand well and I'm writing them following.

  1. Is there any different between Factory Design Pattern and Factory Method Design Pattern.
  2. I saw in some examples, Factory class's get method is static and some examples its not static. What is the correct way.

Any help would appreciate.

Aucun commentaire:

Enregistrer un commentaire