adplus-dvertising
frame-decoration

Question

A constructor is called whenever

a.

a object is declared

b.

an object is used

c.

a class is declared

d.

a class is used

Answer: (a).a object is declared

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A constructor is called whenever

Similar Questions

Discover Related MCQs

Q. Overload function in C++

Q. A class having no name

Q. The differences between constructors and destructor are

Q. A destructor takes

Q. In C++ a function contained within a class is called

Q. The fields in a class of a C++ program are by default

Q. Which of the following function that must contain in all C++ programs?

Q. What punctuation must use to end the code C/C++ expression statement?

Q. What symbol must use to signal the begaining and ending of code blocks or compound statements?

Q. Which of the following is a correct comment for comment in C programs?

Q. What value will return to the operating system upon the successful completion of a program?

Q. Which one of the following is the correct operator to compare two variables?

Q. Which one of the following is not a correct variable type in C++ programs?

Q. The directives for the preprocessors begin with

Q. The header file iostream includes

Q. Which one of the following is the boolean operator for logical and?

Q. What is the only function all C++ programs must contain?

Q. What punctuation is used to the beginning and end of code blocks?

Q. What punctuation must be used to end lines of C++ code?

Q. Which of the following is a correct comment?