Answer Posted / 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 |
Post New Answer View All Answers
What is virtual function? Explain with an example
the first character in the variable name must be an a) special symbol b) number c) alphabet
How a new operator differs from the operator new?
How do you compile the source code with your compiler?
What do you mean by overhead in c++?
What are arithmetic operators?
What is the difference between an enumeration and a set of pre-processor # defines?
What is searching? Explain linear and binary search.
What is constructor and destructor in c++?
Write a program to find the reverse Fibonacci series starting from N.
What is a c++ object?
What are the advantages of c++?
Why struct is used in c++?
To what does “event-driven” refer?
Why the usage of pointers in C++ is not recommended ?