Suppose class A has a regular member function and a virtual member function, and I have two pointers pointing to the same A object. Suppose one ptr deleted the object, while the other pointer is not aware of that. What will happen if the other pointer tries to call the regular member function and the virtual member function?
I understand it is not recommended behavior of utilizing a pointer after the object is deleted, and would emphasize on the difference between regular function versus virtual function, even static member function. Exactly how does compiler treats regular function, virtual function, and even static function at compile time?
Thanks!