Class Patterns and Templates in Software Design

Class Patterns and Templates in Software Design

Julio Sanchez (Minnesota State University, Mankato, USA) and Maria P. Canton (South Central College, USA)
DOI: 10.4018/978-1-59904-887-1.ch024
OnDemand PDF Download:
No Current Special Offers


This chapter describes the use of design patterns as reusable components in program design. The discussion includes the two core elements: the class diagram and examples implemented in code. The authors believe that although precanned patterns have been popular in the literature, it is the patterns that we personally create or adapt that are most useful. Only after gaining intimate familiarity with a particular class structure will we be able to use it in an application. In addition to the conventional treatment of class patterns, the discussion includes the notion of a class template. A template describes functionality and object relations within a single class, while patterns refer to structures of communicating and interacting classes. The class template fosters reusability by providing a guide in solving a specific implementation problem. The chapter includes several class templates that could be useful to the software developer.

Complete Chapter List

Search this Book: