Related Articles

Related Articles

UGC-NET | UGC NET CS 2016 July – III | Question 42
  • Last Updated : 26 Apr, 2018

When one object reference variable is assigned to another object reference variable then
(A) a copy of the object is created.
(B) a copy of the reference is created.
(C) a copy of the reference is not created.
(D) it is illegal to assign one object reference variable to another object reference variable.


Answer: (B)

Explanation: When one object reference variable is assigned to another object reference variable then a copy of the reference is created.
For more information Refer:References in C++
Option (B) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :