Why can you not make a constructor as const?

Answer Posted / sumit kumar

what happens if we make a constructor as const
then object which is not fully constructed,
inside it you can not initialize the instance variable.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who calls main function?

808


What is the advantage of c++ over c?

762


What is this weird colon-member (" : ") syntax in the constructor?

755


Can a function take variable length arguments, if yes, how?

771


What does ios :: app do in c++?

780


Explain abstraction.

836


Define a pdb file.

841


What is endl?

902


Why cout is used in c++?

767


How do you establish a has-a relationship?

816


What is class syntax c++?

859


What is a static element?

803


Explain the concept of dynamic allocation of memory?

854


Explain the use of this pointer?

911


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

814