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

If you don’t declare a return value, what type of return value is assumed?

761


Is c++ a high level language?

769


What methods can be overridden in java?

968


What is the use of typedef?

854


Will rust take over c++?

817


Write about the retrieval of n number of objects during the process of delete[]p?

814


What does new return if there is insufficient memory to make your new object?

817


What is the operator in c++?

892


Which is best ide for c++?

783


Describe private, protected and public – the differences and give examples.

876


Differentiate between an inspector and a mutator ?

936


Which is best c++ or java?

878


Describe new operator and delete operator?

861


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

882


Comment on assignment operator in c++.

924