I have several questions on the Builder Pattern. Builder Pattern uses several methods for constructing an instance of a class and each method return this
as return value.
My questions are:
- Why does each method return a return type instance of same class?
- What is the benefit of this pattern vs using setter method?
Aucun commentaire:
Enregistrer un commentaire