Question: Which of the following statement is correct?

Options

A : Constructor has the same name as that of the class.

B : Destructor has the same name as that of the class with a tilde symbol at the beginning.

C : Both A and B.

D : Destructor has the same name as the first member function of the class.

Click to view Correct Answer

Exam Quiz App on Google Play

Previous || Next

Constructors and Destructors - General Questions more questions

What happens when a class with parameterized constructors and having....

Can a class have virtual destructor?

Destructor has the same name as the constructor and it....

For automatic objects, constructors and destructors are called each time....

Which constructor function is designed to copy objects of the....

Which of the following statement is incorrect?

When are the Global objects destroyed?

Copy constructor must receive its arguments by __________ .

A function with the same name as the class, but....

A union that has no constructor can be initialized with....

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