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?
Destructor destroys only integer data members of the object.
Destructor destroys only float data members of the object.
Destructor destroys only pointer data members of the object.
Destructor destroys the complete object.
Correct Answer:
Destructor destroys the complete object.
← Previous Question
Next Question→
More Questions from
Constructors and Destructors
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?
A constructor that accepts __________ parameters is called the default constructor.
Which of the following statement is incorrect?
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments