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

Explain virtual class?

576


Does improper inheritance have a potential to wreck a project?

622


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

565


Please explain the reference variable in c++?

611


Is string an object in c++?

652






What is general format for a prototype?

591


Is java a c++?

554


Is c++ an oop?

581


Which is best ide for c++?

561


Out of fgets() and gets() which function is safe to use and why?

719


What is istream and ostream in c++?

588


What is dynamic and static typing?

665


Who was the creator of c++?

555


What is name hiding in c++?

605


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

1575