From "Design Patterns Elements of Reusable Object-Oriented Software"
1994
There is a difference between a object's class and its type.
Class defines how an object is implemented.
Type defines its interface or the set of requests to which it will respond.
Class inheritance defines an object's implementation in terms of another object's implementation. A mechanism for code and representation sharing.
Interface inheritance defines or describes when an object can be used in place of another.
Tuesday, December 1, 2009
Wednesday, April 15, 2009
Interfaces
signature: the name, parameters, and the return value of an operation.
Interface: the set of all signatures defined by an object's operations.
Type: the name that denotes a particular interface.
Interface: the set of all signatures defined by an object's operations.
Type: the name that denotes a particular interface.
Subscribe to:
Comments (Atom)
