How to make more than one object refer to the same object?
(a) Initialize it to null
(b) Initialize the object with another at declaration
(c) Use constructor to create new object
(d) Assign the address directly
The question was asked at a job interview.
I'd like to ask this question from Assigning Objects in chapter Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming