Which of the following statement is correct ?
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
What is the sign of destructor ?
!
?
#
~
How many types of constructors are there in C++ ?
1
2
3
4
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 the return type of destructor ?
The class
Void
No return type
The same as the first data in the class
Which of the following statement is correct about destructors ?
A destructor has void return type
A destructor has no return type
A destructor has integer return type
A destructor return type is always same as that of main( )
Which constructor allows objects to be created without passing any parameters ?
Parameterized constructor
Copy constructor
Default constructor
Public constructor
When an object is created which function will be automatically invoked ?
Friend function
Destructor function
Static function
Constructor function
Which of the following are NOT provided by the compiler by default ?
Zero-argument constructor
Destructor
Dynamic constructor
A class named Student must have a constructor whose name is :
Student
~Student
Constructor
None of the above