Multiple choice

Destructors has the same name as that of a class, but with a prefix ' ~'.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In C++, destructors are special member functions that have the same name as the class but preceded by a tilde (~). They are automatically called when an object is destroyed to clean up resources like memory or file handles.