An object’s class defines how the object is implemented. The class defines the object’s internal state and the implementation of its operations. In contrast, an object’s type only refers to its interface—the set of requests to which it can respond. An object can have many types, and objects of different classes can have the same type.
- 1. Introduction
- from Design Patterns: Elements of Reusable Object-Oriented Software
- Publisher: Addison-Wesley Professional
- Released: October 1994
Object's class and its type
Share this highlighthttp://www.safaribooksonline.com/a/design-patterns-elements/72351/