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 |
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is the insertion operator and what does it do?
What is the best c++ compiler?
What is static function? Explain with an example
What is the difference between the functions rand(), random(), srand() and randomize()?
difference between the c++ and c languages
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
What are the four partitions in which c++ compiler divides the ram?
which of the following is not an secondary constant a) array b) real c) union
What are disadvantages of pointers?
What do you mean by late binding?
What is a c++ class?