development:software-architecture:design-patterns:factory
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
development:software-architecture:design-patterns:factory [2024/08/16 09:39] – [Factory Method Pattern] tungnt | development:software-architecture:design-patterns:factory [2024/08/19 09:29] (current) – tungnt | ||
---|---|---|---|
Line 128: | Line 128: | ||
{{ : | {{ : | ||
+ | |||
+ | **Tóm lại:** Method Factory dùng khi có nhiều cách thức khác nhau để đạt được 1 mục tiêu, và để khi thêm một cách thức mới thì chúng ta chỉ cần thêm một Class mới tương ứng không phải sửa quá nhiều code trong function xử lý. | ||
**Ví dụ 1:** | **Ví dụ 1:** |
development/software-architecture/design-patterns/factory.1723801151.txt.gz · Last modified: 2024/08/16 09:39 by tungnt