ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Is it possible that an object of is passed to a function, and the function also have an object of same name?
Correct Answer: C — No, Duplicate declaration is not allowed
There can’t be more than one variable or object with the same name in same scope. The scope is same, since the object is passed, it becomes local to function and hence function can’t have one more object of same name.