Which of the following cannot be inherited ?
Public data members
Constructor functions
Void functions
Overloaded + operators
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 is being created?
Constructor
Destructor
Parameter
Argument
Which of the following is used in copy constructor to receive its arguments ?
Either pass-by-value or pass-by-reference
Only pass-by-value
Only pass-by-reference
Only pass-by-address
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
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
Which of the following gets called when an object goes out of scope ?
Main
Virtual function
Which of the following statements are correct ?
Constructor is always called explicitly
Constructor is called either implicitly or explicitly, whereas destructor is always called implicitly
Destructor is always called explicitly
Constructor and destructor functions are not called at all as they are always inline
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