Holub on patterns 2 2

1,206 views

Published on

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,206
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
22
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Holub on patterns 2 2

  1. 1. Holub on PatternsRemove extends charsyam@naver.com
  2. 2. Why RemovesExtends?
  3. 3. Extends is not Bad.
  4. 4. Just.Using Concrete Class is Bad
  5. 5. Use Interface!
  6. 6. How to Remove Extens?
  7. 7. Use Abstract Factory!
  8. 8. Using 1
  9. 9. Factory <<interface>> EmployeeFactory Employee <<Employee>>+create() Peon <<void>>+youAreFired()
  10. 10. Using 2
  11. 11. Using 3
  12. 12. Use Abstract Factory!
  13. 13. 2 Patterns Singleton Abstract Factory
  14. 14. Pass Singleton Pattern Threading Issue Don’t Use Double-Checked Locking
  15. 15. Abstract Factory Pattern NOT Factory Method Pattern Factory is changable
  16. 16. Abstract Factory Pattern
  17. 17. Abstraction 1Employee.Factory.create();
  18. 18. Abstraction 2Employee.Factory.create(); Employee.create();
  19. 19. Java Example HttpURLConnection FtpURLConnection
  20. 20. 2 Patterns Command Strategy
  21. 21. Pass Command Pattern Default Pattern
  22. 22. Strategy Example
  23. 23. Thank You!

×