Tuesday, June 26, 2007

model has a or is implemented in terms of through composition

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 .


1 comment:

abnegator said...

.. 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".