What is a constructor initializer list and when we use
constructor initializer list?

Answer Posted / mahesh

The main use of constructor is to initialize object.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an object in c++?

695


Ask to write virtual base class code?

2308


Write a function that swaps the values of two integers, using int* as the argument type?

690


What is dynamic and static typing?

779


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

709






How a new element can be added or pushed in a stack?

678


Explain Memory Allocation in C/C++ ?

717


What are the classes in c++?

721


What is the full form nasa?

673


What are the differences between the function prototype and the function defi-nition?

707


How much do c++ programmers make?

646


Explain the difference between using macro and inline functions?

686


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

655


Explain differences between alloc() and free()?

672


what is data encapsulation in C++?

703