Code
main() {
Person *person_1 = new Person("Bob", 23);
revealTrueIdentity(person_1);
}
void revealTrueIdentity(Person *p) {
p->setName("James Bond");
p->setAge(37);
}
Stack & Heap
STACK
HEAP
Tutorial 5