1.

References to object are same as pointers of object.(a) True(b) FalseI got this question in an online quiz.I would like to ask this question from Pointer to Objects topic in division Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming

Answer»

Right choice is (b) False

Easy explanation - The REFERENCES are made to object when the object is created and initialized with another object without calling any CONSTRUCTOR. But the object pointer must be DECLARED explicitly using * symbol that will be capable of STORING some address. Hence both are DIFFERENT.



Discussion

No Comment Found

Related InterviewSolutions