Question: Which of the following statement is correct?

Options

A : A constructor has the same name as the class in which it is present.

B : A constructor has a different name than the class in which it is present.

C : A constructor always returns an integer.

D : A constructor cannot be overloaded.

Click to view Correct Answer

Previous || Next

Constructors and Destructors - General Questions more questions

It is a __________ error to pass arguments to a....

If the programmer does not explicitly provide a destructor, then....

A __________ is a constructor that either has no parameters,....

How many default constructors per class are possible?

Which of the following statement is correct about destructors?

Which of the following implicitly creates a default constructor when....

A destructor takes __________ arguments.

Destructor calls are made in which order of the corresponding....

Which of the following never requires any arguments?

A class's __________ is called when an object is destroyed.

Constructors and Destructors - General Questions more Online Exam Quiz

Operating Systems Concepts - Part 1

System Analysis and Design - Part 1

Unix - Part 1

Windows 2000 Server - Part 1

Windows NT - Part 1

Functions - General Questions

Objects and Classes - General Questions

OOPS Concepts - General Questions

References - General Questions

Arrays - General Questions