PPT Slide
Unlike Java containers, container in C++ are homogeneous and can hold only one type of value.
To combine apples and oranges in the same container, need an adaptor that will convert the type into a more suitable data value.
We get one first by defining a common parent class that will describe the behavior that we want all fruit to posses:
class Fruit { public: virtual void print (ostream &) = 0;};