Type Object


By: R.E. Johnson, B. Woolf
Published in: PLoPD3
Pages: 47-65

Summary: Decouple instances from their classes so the classes can become instances of a class. Use two concrete classes, one whose instances represent the application's instances and one whose instances represent types. Each application instance has a pointer to its corresponding type.


Category: Behavioral

Decouple instances from their classes so the classes can become instances of a class. Use two concrete classes, one whose instances represent the application's instances and one whose instances represent types. Each application instance has a pointer to its corresponding type.