Question: What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?

Options

A : Compile-time error.

B : Preprocessing error.

C : Runtime error.

D : Runtime exception.

Click to view Correct Answer

Previous || Next

Constructors and Destructors - General Questions more questions

Bridges are ideally used in environments where there a number....

A company has a department that consists of 15 engineers.....

A one-way trust relationship has been established in which the....

Assume that all users are members of the ACE domain....

A constructor that accepts __________ parameters is called the default....

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 correct?

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