Which statement is correct? A destructor
-
A
Allows the same function name to perform different tasks
-
B
Is called when an object is destroyed
Correct answer
-
C
Is an interpreted, high-level programming language known for readability
-
D
Stores the address of a variable
Correct answer
B. Is called when an object is destroyed
Explanation
A destructor is called when an object is destroyed.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ