Quantcast
Channel: JavaPins - Stories tagged with design pattern
Viewing all articles
Browse latest Browse all 25

Coding With Passion: Design Patterns in Java - Template Method

$
0
0
Introduction This is first article about OO design patterns, we will start with the most useful pattern. Template method (GoF - Gang Of Four) present good example of using concrete inheritance. If you ask me, using inheritance in this way is far more productive than using concrete inheritance for code reuse. Everything you think you can do with concrete inheritance, you can do also with plain object composition. But, ok...never mind about that, let's write something about template method pattern. ...
Pin it

Viewing all articles
Browse latest Browse all 25

Trending Articles