C++ Programming :: Constructors and Destructors
-
A constructor that accepts __________ parameters is called the default constructor.
-
What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?
-
For automatic objects, constructors and destructors are called each time the objects
-
Which of the following statement is correct about the program given below?
#include class Freshergate { int *p; public: FresherGATE(int xx, char ch) { p = new int(); *p = xx + int(ch); coutdelete p; } }; int main() { FresherGATE objGate(10, 'B'); return 0; } -
Which constructor function is designed to copy objects of the same class type?
-
Which of the following statement is correct?
-
Which of the following statement is incorrect?
-
When are the Global objects destroyed?

Whatsapp
Facebook