1.

If more than one object refer to the same address, any changes made __________(a) Can be made visible to specific objects(b) Will be specific to one object only(c) From any object will be visible in all(d) Doesn’t changes the values of all objectsI had been asked this question in an online quiz.My question is based upon Assigning Objects in section Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming

Answer»

Right choice is (c) From any object will be visible in all

Easiest explanation - At a memory ADDRESS, only ONE object can be referenced. All the other objects which refer to the same memory address MAKE CHANGES for all of the objects referring that address.



Discussion

No Comment Found

Related InterviewSolutions