What Happens When An Object Is Passed By Reference #195
What happens when an object is passed by reference?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Constructors and Destructors - OOPs MCQ: Destructors - Quiz No.2.
What happens when an object is passed by reference?
Destructor is not called
Destructor is called at end of function
Destructor is called when function is out of scope
Destructor is called when called explicitly