⟩ Destructor has the same name as the constructor and it is preceded by ______ . A. ! B. ? C. ~ D. $
Option C
( ~ )
Option C
( ~ )
Which of the following statement is correct? A. A destructor has the same name as the class in which it is present. B. A destructor has a different name than the class in which it is present. C. A destructor always returns an integer. D. A destructor can be overloaded.
A __________ is a constructor that either has no parameters, or if it has parameters, all the parameters have default values. A. default constructor B. copy constructor C. Both A and B D. None of these
If the copy constructor receives its arguments by value, the copy constructor would A. call one-argument constructor of the class B. work without any problem C. call itself recursively D. call zero-argument constructor
How many default constructors per class are possible? A. Only one B. Two C. Three D. Unlimited
Which of the following cannot be declared as virtual? A. Constructor B. Destructor C. Data Members D. Both A and C
Which of the following are NOT provided by the compiler by default? A. Zero-argument Constructor B. Destructor C. Copy Constructor D. Copy Destructor
Which of the following statement is correct about destructors? A. A destructor has void return type. B. A destructor has integer return type. C. A destructor has no return type. D. A destructors return type is always same as that of main().
Which of the following statement is correct? A. Destructor destroys only integer data members of the object. B. Destructor destroys only float data members of the object. C. Destructor destroys only pointer data members of the object. D. Destructor destroys the complete object.
What is Iterator class?
Tell us what you know about Iterator class?