41⟩ A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class. A. constructor B. destructor C. function D. object
Option B
destructor
“C++ Constructors frequently Asked Questions by expert members with experience in C++ constructors. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts”
Option B
destructor
Option B
can be overloaded
Option B
same
Option A
A destructor has the same name as the class in which it is present.
Option A
default constructor
Option C
call itself recursively
Option A
Only one
Option D
Both A and C
Option D
Copy Destructor
Option C
A destructor has no return type.
Option D
Destructor destroys the complete object.