I came across the GOF (Gang of Four) Advice "Favor Aggregation over Inheritance".
http://www.netobjectives.com/competencies/favor-aggregation-over-inheritance
Can you provide a concrete example where both - inheritance and aggregation - would be design options but I should use aggregation instead of inheritance? If possible please attach a UML diagram.