1.

How many objects can be assigned to a single address?(a) Only 1(b) At most 7(c) At most 3(d) As many as requiredThis question was addressed to me during an internship interview.Enquiry is from Assigning Objects in division Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming

Answer»

The correct answer is (d) As MANY as required

Easiest explanation - The memory ADDRESS can be referenced by more than one OBJECT. There is no maximum number DEFINED. Any number of objects can REFERENCE to the same address.



Discussion

No Comment Found

Related InterviewSolutions