ABSTRACT

The learning objective is the TEMPLATE METHOD. This pattern is in this learning iteration of the book because it is really the heart of object-oriented frameworks. TEMPLATE METHOD should pose no surprises as you have already seen and hopefully implemented dozens of template methods already. The primary focus is thus to define the terminology of the pattern: the roles and the structure; as well as introduce the terms used for the polymorphic and compositional variants of the pattern.