First page Back Continue Last page Graphics
Has-a Relationship
An object of one class “has-a” object from another class.
This is composition (demonstrated by lab 7)
There may be no use for some of the member functions from one object to the other, whereas in is-a, you get all of them.
Public inheritance DOES NOT do “has-a”.