Which of the following is false for a destructor?

Options
- The destructor has the same name as the class
- If the object was created with a new expression, then its destructor is called when the delete operator is applied to a pointer to the object
- Its main purpose is to clean up and to free the resources
- None of the above


CORRECT ANSWER : None of the above

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement