C++ Programming - Constructors and Destructors - Discussion

Discussion Forum : Constructors and Destructors - General Questions (Q.No. 25)
25.
Which of the following statement is correct about destructors?
A destructor has void return type.
A destructor has integer return type.
A destructor has no return type.
A destructors return type is always same as that of main().
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Akshay bhosale said:   10 years ago
Because destructor has not any return datatype.

Raj kumar prasad said:   1 decade ago
There is no address for the constructor as well as destructor so there is no need of return type.

E.arun kumar said:   1 decade ago
Constructor has to be added at every new functions to the existing function but one destructor is enough to destroy more number of functions. So destructor has no return type.

Post your comments here:

Your comments will be displayed after verification.