OOP_Design

TwitterFacebook
Get flash to fully experience Pearltrees

10.2 — Composition

http://www.learncpp.com/cpp-tutorial/102-composition/ In real-life, complex objects are often built from smaller, simpler objects. For example, a car is built using a metal frame, an engine, some tires, a transmission, a steering wheel, and a large number of other parts.
A shallow copy of an object copies all of the member field values.

C++: Shallow vs Deep Copies

http://www.fredosaurus.com/notes-cpp/oop-condestructors/shallowdeepcopy.html