Answering modeling question posted at Stack Overflow
http://stackoverflow.com/questions/34004229/c-composition-and-pointer-data-member
This code is a canonical example of how to translate the following UML class diagram involving generalization and composite associations to C++ code.
The Eclipse Papyrus UML model is included.