InterviewSolution
Saved Bookmarks
| 1. |
Class is pass by _______(a) Value(b) Reference(c) Value or Reference, depending on program(d) CopyI had been asked this question by my school teacher while I was bunking the class.My doubt is from Classes in portion OOPs Concept & Features of Object Oriented Programming |
|
Answer» RIGHT CHOICE is (b) REFERENCE Explanation: Classes are PASS by reference, and the structures are pass by copy. It doesn’t depend on the PROGRAM. |
|