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
Write a Program for find and replace a character in a string.
Which is best c++ or java?
What is else syntax in c++?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What is the difference between a definition and a declaration?
How many keywords are used in c++?
What is a float in c++?
What is pointer in c++ with example?
How do I make turbo c++ full screen?
What is c++ 11 and c++ 14?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
How do you clear a map in c++?
How can a called function determine the number of arguments that have been passed to it?
what is c++
What is the full form of ios?