composition is also known as layering, containment, aggregation and embedding
their are two kinds of objects....objects in the real world and implementation artifacts ( buffers, mutexes, search trees)
things to remember:
composition has meanings completely different from that of public inheritance
in the application domain, composition means has a , in the implementation domain it means is implemented in terms of .
Subscribe to:
Post Comments (Atom)
1 comment:
.. and in the derived class (deriving base privately) domain, private inheritance means "IS-A".
.. and in the publicly derived classes of the derived class (deriving base privately) domain, protected inheritance means "IS-A".
.. and in the application domain, user of the hierarchy, public inheritance means "IS-A".
Post a Comment