C++ Constructors Question: Download Questions PDF
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?
A. Compile-time error.
B. Preprocessing error.
C. Runtime error.
D. Runtime exception.
![C++ Constructors Interview Answer C++ Constructors Interview Question](https://globalguideline.com/public/images/interview/30.png)
Answer:
Option A
Compile-time error.
Compile-time error.
Download C++ Constructors Interview Questions And Answers
PDF
Previous Question | Next Question |
A constructor that accepts __________ parameters is called the default constructor. A. one B. two C. no D. three | Can a class have virtual destructor? A. Yes B. No |