HelloEarth
Programmer
//********************************
Telephone myPhone;
Telephone* myPhone2 = &myPhone;
delete myPhone2;
myPhone.blah();
//********************************
How can I use: myPhone.blah(); if the object is destroyed by the pointer?
What exactly is being deleted when I call:
"delete myPhone2"?
Telephone myPhone;
Telephone* myPhone2 = &myPhone;
delete myPhone2;
myPhone.blah();
//********************************
How can I use: myPhone.blah(); if the object is destroyed by the pointer?
What exactly is being deleted when I call:
"delete myPhone2"?