Answer Posted / dee
delete "this" lead in calling the destructor twice.
"this" poanter is related to object and the destructor is
called when the object goes out of scope.
Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
What are the effects after calling the delete this operator ?
What are the data types in c++?
What is new in c++?
Explain what data encapsulation is in c++?
Can member functions be private?
What parameter does the constructor to an ofstream object take?
Explain differences between new() and delete()?
Difference between overloading vs. Overriding
What is the identity function in c++? How is it useful?
What are stacks?
Explain how to initialize a const member data.
Is c# written in c++?
What is pointer to array in c++?
What is class syntax c++?
Why do we use double in c++?