What is a constructor initializer list and when we use
constructor initializer list?
Answer Posted / deep
There is couple special case when you need mandatory
constructor initialization list.
a. To initialise a const
b. To initialise a reference
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What do the header files usually contains?
How do you flush std cout?
Can we define function inside main in c++?
Can a function take variable length arguments, if yes, how?
What are the four main data types?
What is abstract keyword in c++?
How can you link a c program with a c function?
Name four predefined macros.
When should overload new operator on a global basis or a class basis?
Explain what are single and multiple inheritances in c++?
Why is c++ still best?
What is c++ course?
Define anonymous class.
Is map thread safe c++?
What is the prototype of printf function?