Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How can I learn dev c++ programming?

989


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

1043


Describe protected access specifiers?

1165


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1093


What is the main purpose of c++?

1030


Are there any special rules about inlining?

1034


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

996


What is data abstraction? How is it different from data encapsulation?

956


Can you explicitly call a destructor on a local variable?

988


Explain terminate() function?

1017


What are literals in C++?

990


What do you mean by friend class & friend function in c++?

1021


Why is "using namespace std;" considered bad practice?

1057


Explain the scope of resolution operator.

1061


Can circle be called an ellipse?

1034