What will happen if when say delete this ?

Answer Posted / hidden prairie

delete this will call the destructor, but should not be
called in the destructor but in any other member function.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between Abstraction and encapsulation in C++?

570


What are shallow and deep copy?

589


What is class and structure in c++?

548


Can a new be used in place of old mallocq? If yes, why?

626


What is c++ prototype?

580






What is null c++?

579


Which bitwise operator is used to check whether a particular bit is on or off?

583


Who created c++?

566


What is endl?

625


Explain container class.

679


Which is better c++ or java?

552


Why namespace is used in c++?

594


Write my own zero-argument manipulator that should work same as hex?

571


What is a responder chain?

564


What is #include cstdlib in c++?

647