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 is the difference between object-oriented programming and procedural programming?
What is the difference between the functions memmove() and memcpy()?
What is the difference between global int and static int declaration?
what are Operators and explain with an example?
What is the header file for setw?
What do you mean by translation unit?
What is endl?
Explain the difference between new() and malloc() in c++?
What are the various situations where a copy constructor is invoked?
What is token c++?
What is the use of bit fields in structure declaration?
Differentiate between realloc() and free().
What is virtual table?
Why cstdlib is used in c++?
what is the difference between overloading & overriding? give example.