What is a mutable member?
Answer / nimish singh
One that can be modified by the class even when the object of the class or the member function doing the modification is const.
Understanding this requirement implies an understanding of C++ const, which many programmers do not have. I have seen large class designs that do not employ the const qualifier anywhere. Some of those designs are my own early C++ efforts. One author suggests that some programmers find const to be such a bother that it is easier to ignore const than to try to use it meaningfully. No wonder many programmers don't understand the power and implications of const. Someone who claims to have enough interest in the language and its evolution to keep pace with the ANSI deliberations should not be ignorant of const, however.
Is This Answer Correct ? | 0 Yes | 0 No |
What are the various operations performed on stack?
What is a buffer c++?
What happens if a pointer is deleted twice?
What is a try block?
What is the use of register keyword with the variables?
What is the c++ code?
what is polymorphism?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
How do I use arrays in c++?
Incase of a function declaration, what is extern means?
What is auto type c++?
how can u create a doubly linked list with out using pointers?