In below code snippet, although pointer is not initialized the call is still made successfully
temp *ptr; ptr->func2();
Is it due to C++
You can call the methods using uninitialised pointers. It will work either ptr->func1(); or int crashere=ptr->func1();//