Q:

Is it possible that an object of is passed to a function, and the function also have an object of same name?

0

Is it possible that an object of is passed to a function, and the function also have an object of same name?


  1. No, Duplicate declaration is not allowed
  2. No, 2 objects will be created
  3. Yes, Scopes are different
  4. Yes, life span is different

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).No, Duplicate declaration is not allowed

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Passing an object using copy constructor and pass ... >>
<< If an object is passed by address, will be constru...