Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
Constructors and Destructors
Which of the following statement is correct?
A destructor has the same name as the class in which it is present.
A destructor has a different name than the class in which it is present.
A destructor always returns an integer.
A destructor can be overloaded.
Correct Answer:
A destructor has the same name as the class in which it is present.
← Previous Question
Next Question→
More Questions from
Constructors and Destructors
Which of the following statement is correct?
Which of the following statement is correct?
Can a class have virtual destructor?
Which of the following statements are correct?
Which of the following statement is correct about destructors?
It is a __________ error to pass arguments to a destructor.
Which of the following statement is correct?
Destructors __________ for automatic objects if the program terminates with a call to function exit or function abort.
A class's __________ is called when an object is destroyed.
Destructor calls are made in which order of the corresponding constructor calls?
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments