For automatic objects, constructors and destructors are called each time the objects :
Enter and leave scope
Inherit parent class
Are constructed
Are destroyed
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
What is called default constructor ?
A constructor that accepts one parameter
A constructor that accepts two parameters
A constructor that accepts no parameter
A constructor that accepts three parameters
Which of the following gets called when an object goes out of scope ?
Constructor
Destructor
Main
Virtual function
Destructor has the same name as that of the class with a tilde symbol
Constructor has the same name as that of the class
Both a and b
Destructor has the same name as the first member function of the class
Which of the following are NOT provided by the compiler by default ?
Zero-argument constructor
Dynamic constructor
Copy constructor
How many default constructors can a class have ?
One
Two
Three
Unlimited
What is the return type of destructor ?
The class
Void
No return type
The same as the first data in the class
Which of the following gets called when an object is being created?
Parameter
Argument
Which of the following statement is incorrect ?
Constructor is a member function of the class
Constructor should be declared in the public sections
Constructor can be referenced using their addresses
They can have default arguments