Home / Programming MCQs / C++ MCQs / Question
D
Q. Is it mandatory to call a constructor to create an object?
Yes, you need a constructor every time you create an object in C++. If you do not specify any value for the object, then a default constructor is called and automatically assigns a default value to class variables.
You must be Logged in to update hint/solution
Variable names must begin with ___
____ are data items whose value cannot be changed.
The basic types are collectively called as ___
Which one is not a correct variable type in C++?
What is the output of the following C++ code?
What is the use of constructors in C++?
Which of the following language feature is not an access specifier in C++?
With the help of which character array can be initialized using
Discusssion
Login to discuss.