반응형 design pattern3 Strategy Pattern Strategy pattern is useful when we want our application to be flexible. Made up of strategy and context. Source code : https://github.com/Tonyzorz/DesignPatterns/tree/master/bin/behavior/strategy 2020. 2. 28. Chapter 1 https://github.com/Tonyzorz/HeadFirstDesignPattern Tonyzorz/HeadFirstDesignPattern Head first design pattern. Contribute to Tonyzorz/HeadFirstDesignPattern development by creating an account on GitHub. github.com Design principles: - Identify the aspects of your application that vary and separte them frmo what stays the same. - Program to an interface, not an implementation. - Favor composition .. 2020. 2. 27. Factory Design Pattern Using a super class with multiple sub classes, and depending on input returns one sub class. Factory pattern allows no actual instantiation on client code. source : https://www.journaldev.com/1392/factory-design-pattern-in-java 2020. 2. 22. 이전 1 다음 반응형