in Design Patterns by
Q:
What is main benefit of using factory pattern ? Where do you use it?

1 Answer

0 votes
by

Factory pattern’s main benefit is increased level of encapsulation while creating objects. If you use Factory to create object you can later replace original implementation of Products or classes with more advanced and high performance implementation without any change on client layer. See my post on Factory pattern for more detailed explanation and benefits.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Oct 16, 2019 in Design Patterns by DavidAnderson
0 votes
asked Jan 15, 2020 in Angular by rahuljain1
0 votes
asked Jan 27, 2020 in JAVA by rahuljain1
0 votes
asked Jan 12, 2020 in Big Data | Hadoop by sharadyadav1986
0 votes
asked Oct 17, 2019 in Design Patterns by Robin
...