Monday, December 6, 2010

Mapping C++ Feature to OOD Feature

Mapping C++ Feature to OOD Feature

common base class - common traits
public inheritance - isa
private inheritance -implemented in terms of
layering (aka composition) - has-a or implemented in terms of
pure virtual function - only interface inherited
simple virtual function - interface and default implementation inherited
nonvirtual function - interface and mandatory implementation inherited

Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) by Scott Meyer. Addison-Wesley, 2005.

No comments:

Post a Comment