Saved Bookmarks
| 1. |
Assigning reference to an object _________________(a) Will create another copy of the object(b) Will create two different copies of the object(c) Will not create any other copy of the object(d) Will not refer to the objectThe question was posed to me in an interview for internship.This interesting question is from Assigning Objects topic in portion Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming |
|
Answer» CORRECT option is (c) Will not create any other copy of the OBJECT For EXPLANATION: When an object is assigned with another object. Same MEMORY location is used. There is no other copy of the object created. |
|