Logo - Fakultät Illustration



„The family pattern“

AutorInnen: Friedrich Steimann
Kategorie: Artikel in Zeitschriften
erschienen in: Journal of Object-Oriented Programming 13:10 (2001) 28–31
Abstract: Families are groups of classes that are related by genus, that is, by having one common ancestor. Typical examples of families are numbers, collections and geometrical shapes, which are usually realized as subhierarchies of a global class hierarchy. The Family pattern adds virtual instance creation to these subhierarchies and suggests that certain operations on family members should be implemented as factories returning instances of the appropriate type. Thus, the pattern ensures that clients of the family are always provided with instances that best suit their needs.
Download: PDF
06.05.2008 12:21
FernUni-Logo FernUniversität in Hagen, Fakultät für Mathematik und Informatik, Lehrgebiet Programmiersysteme, 58084 Hagen, Tel.: +49 2331 987-2998