What Should Be Done To Prevent Changes That May Be Made To The #1169
What should be done to prevent changes that may be made to the values pointed by the pointer?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Assigning Object, Pointer to Objects, Passing and Returning Object - OOPs MCQ: Pointer to Objects - Quiz No.2.
What should be done to prevent changes that may be made to the values pointed by the pointer?
Usual pointer can’t change the values pointed
Pointer should be made virtual
Pointer should be made anonymous
Pointer should be made const