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