C++ Programming - Constructors and Destructors - Discussion
Discussion Forum : Constructors and Destructors - General Questions (Q.No. 17)
17.
Which of the following statement is correct?
Discussion:
13 comments Page 1 of 2.
Surekha said:
4 years ago
Please explain about option C.
Vilady said:
6 years ago
The constructor has the same name as the class, and the destructor's name isnt the same as the constructors, which means the destructor's name is not the same as the class' name.
(1)
Naveen said:
7 years ago
Can you explain why destructor cannot be overloaded?
Vivetha said:
8 years ago
Destructor cannot be overloaded.
Kaustubh said:
8 years ago
Destructors cannot be overloaded. Am I right?
Praveen said:
9 years ago
Can destructor be overloaded?
Emilio said:
10 years ago
In my opinion A and ~A are different names, so the B should be the right answer.
Ravindra said:
1 decade ago
If your derived class destructor is virtual then objects will be destructed in a order (firstly derived object then base).
(1)
Sravan said:
1 decade ago
What is virtual destructor?
Sabareesh said:
1 decade ago
Destructor has come with with tilde symbol prefix to class name (constructor don't require any special symbol for execution).
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers