lundi 10 juillet 2017

comparison of design pattern in java?

I was going through the various design patterns following Doc.

I'm clear about the Factory and abstract Factory Design Patterns. But little bit confused about the Builder and prototype Design pattern.

When to use which design pattern if i have following criteria :-

  1. Security of API (Inversion of Control).
  2. Code usability.
  3. Code Hiding (encapsulation).

Aucun commentaire:

Enregistrer un commentaire