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

What are the restrictions apply to constructors and destructors?

645


How do you master coding?

569


What are the uses of c++ in the real world?

566


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

623


Explain what is polymorphism in c++?

629






How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

587


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

624


What is class and structure in c++?

563


What is ostream in c++?

578


What is the difference between global variables and static varables?

575


Explain the operation of overloading of an assignment operator.

698


Define copy constructor.

623


Explain what you mean by a pointer.

636


Why do we use classes in programming?

578


Describe exception handling concept with an example?

564