Code
  main() {
      Person *pointer_1 = new Person("Jacky", 19);
      Person *pointer_2 = pointer_1;
 
      pointer_1->incrementAge();
      pointer_2->setName("Jackylyn");
 
      delete pointer_1;
      pointer_1 = 0;
      pointer_2 = 0;;
  }
Stack & Heap
STACK
HEAP
Tutorial 4
Reset