Q:

Constructor function is not called when an object is passed to a function, will its destructor be called when its copy is destroyed?

0

Constructor function is not called when an object is passed to a function, will its destructor be called when its copy is destroyed?


  1. Yes, depending on code
  2. Yes, must be called
  3. No, since no constructor was called
  4. No, since same object gets used

All Answers

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

(b).Yes, must be called

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
When an object is returned by a function, a ______... >>
<< If an object is passed by reference, the changes m...