Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 921ec26

Browse files
committed
fixes#1
1 parent 2ab9a56 commit 921ec26

File tree

1 file changed

+2
-7
lines changed
  • design-pattern/creational/factory-pattern

1 file changed

+2
-7
lines changed

‎design-pattern/creational/factory-pattern/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# Factory Pattern
22
```xml
3-
When using the Factory method design pattern, we gain an extra layer of encapsulation so
4-
that our program can grow in a controlled environment. With the Factory method, we
5-
delegate the creation of families of objects to a different package or object to abstract us
6-
from the knowledge of the pool of possible objects we could use. Imagine that you want to
7-
organize your holidays using a trip agency. You don't deal with hotels and traveling and
8-
you just tell the agency the destination you are interested in so that they provide you with
9-
everything you need. The trip agency represents a Factory of trips.
3+
When using the Factory method design pattern, we gain an extra layer of encapsulation so that our program can grow in a controlled environment. With the Factory method, we delegate the creation of families of objects to a different package or object to abstract us from the knowledge of the pool of possible objects we could use. Imagine that you want to
4+
organize your holidays using a trip agency. You don't deal with hotels and traveling and you just tell the agency the destination you are interested in so that they provide you with everything you need. The trip agency represents a Factory of trips.
105
```
116

127
### Objectives

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /