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

Can we specify variable field width in a scanf() format string? If possible how?

897


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

925


Why is it called c++?

772


What is a try block?

839


Which c++ compiler is best?

837


What is the c++ code?

810


What are the various oops concepts in c++?

792


What is a c++ object?

848


What's the best free c++ profiler for windows?

827


Why is c++ called oops?

792


Is swift faster than go?

870


How the endl and setw manipulator works?

747


Are strings mutable in c++?

888


How is static data member similar to a global variable?

829


What is the best c++ book for beginners?

818