Open In App

UGC-NET | UGC NET CS 2016 July – III | Question 42

Last Updated : 26 Apr, 2018
Like Article
Like
Save
Share
Report

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


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads