InterviewSolution
Saved Bookmarks
| 1. |
Is it possible that an object of is passed to a function, and the function also have an object of same name?(a) No, Duplicate declaration is not allowed(b) No, 2 objects will be created(c) Yes, Scopes are different(d) Yes, life span is differentI have been asked this question in my homework.This interesting question is from Passing and Returning Object with Functions in section Object of Object Oriented Programming |
|
Answer» Correct CHOICE is (a) No, DUPLICATE declaration is not allowed |
|