•Foo* fooPointer = new
Foo(0, 0); // create a pointer to
// Foo and give it a value
Foo myFooInstance =
*fooPointer; // dereference the pointer
// and assign it to myFooInstance;
// A copy is made
(!)
•
•Modificando
myFooInstance NON si modifica anche l’oggetto puntato da
fooPointer
•