Object Values
C++ uses copy semantics.
class box { // C++ box
public:
int value;
};
box a; // note, explicit allocation not required
box b;
a.value = 7;
b = a;
a.value = 12;
cout << "a value " << a.value << endl;
cout << "b value " << b.value << endl;