First page Back Continue Last page Graphics
Others
is-implemented-as-a relationship
- You could implement a stack using a linked list. But you shouldn't derive a stack from a linked list. A stack is not a linked list.
- Public inheritance DOES NOT do “is-implemented-as-a”.
uses-a relationship
- A computer can use a laser printer, but you shouldn't derive a printer class from a computer class.
- Public inheritance DOES NOT do “uses-a”.