Why can you not make a constructor as const?

Answer Posted / som shekhar

Sorry the keyword is not volatile ,its mutable.
if the member varible of the class is declared as mutable
then you can change its value in a function which is
declared as constant.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of static class data?

638


How can I improve my c++ skills?

563


what is scupper?

1895


What is the header file for setw?

579


Describe public access specifiers?

587






What is a null object in c++?

640


How many types of modularization are there in c++?

566


Name the operators that cannot be overloaded in C++?

587


Why do we use the using declaration?

664


We use library functions in the program, in what form they are provided to the program?

602


What is malloc in c++?

560


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

635


what is Member Functions in Classes?

620


Distinguish between a # include and #define.

653


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

1807