Dependency Inversion Principle - Template Pattern
# High-level code says to low-level code: "Don't call us, we'll call you." # Frameworks are, in fact, a natural extension of THE TEMPLATE PATTERN. BTW, The template pattern does not have anything to do with generic classes or templated containers. In the template pattern, a complicated algorithm is implemented.(Usually in the form of an instantiated method of an abstract base class.) The abstrac..
Java
2016. 7. 22. 18:15