Patterns for encapsulating class trees
Dirk Riehle · 1996
Factory. Section 6 goes back to discuss the pattern form and what we have gained from using it. Section 7 summarizes the paper and presents some further conclusions. Object-oriented design firmly relies on abstract classes. They represent the key design decisions that structure a system in the large. An abstract class represents the interface to a whole class tree. This interface is often sufficient for clients to work with objects of the class tree. Only for selecting classes of the class tree and creating objects of them, concrete subclasses of the abstract class have to be named. If this is done by clients of the abstract class, they become dependent on the class tree's internal structure. Changes of class names and class tree structure force clients to be changed. Therefore, the class tree behind an abstract class should be hidden from all clients of that class. If a client's knowledge is restricted to the abstract class only, all dependencies on subclasses are cut. This has severa...
Cited by 6 works.
Authors
References
- Common LISP: the language (2nd ed.)
- Designing and implementingChoices
- Data abstraction and object-oriented programming in C++
- Data Abstraction and Hierarchy
- Combining contracts and exemplar-based programming for class hiding and customization
- A pattern language for tool construction and integration based on the tools and materials metaphor
- ET++—a portable, homogeneous class library and application framework
- A New Definition of the Subtype Relation
- Organizational multiplexing: patterns for processing satellite telemetry with distributed teams