Families of mutually dependent classes that may be accessed polymor- phically provide an advanced tool for separation of concerns, in that it enables client code to use a group of instances of related classes safely without depending on the exact classes involved. However, class families which are expressed using virtual classes seem to be very tightly coupled internally. While clients have achieved the freedom to dynamically use one or the other family, it seems that any given family contains a xed set of classes and we will need to create an entire family of its own just in order to replace one of the members with another class. This paper shows how to express class families in such a manner that the classes in these families can be used in many dierent combinations, still enabling family polymorphism and ensuring type safety.
Proceedings of Workshop on Advanced Separation of Concerns, 2001
Main Research Area:
15th European Conference on Object-Oriented Programming. ECOOP 2001