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
Discussion on error handling of C++ .
What is an iterator?
What does return 0 do in c++?
Which programming language's unsatisfactory performance led to the discovery of c++?
What are the benefits of operator overloading?
What's the best free c++ profiler for windows?
Explain the difference between class and struct in c++?
How do you declare A pointer to a function which receives nothing and returns nothing
Explain the difference between using macro and inline functions?
Explain method of creating object in C++ ?
What is a .h file c++?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
State two differences between C and C++.
What do you mean by translation unit?
Will a catch statement catch a derived exception if it is looking for the base class?