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 different
I 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