Advertisements
Advertisements
Question
Why is an object not passed to a constructor by value? Explain.
Short Answer
Solution
Objects are passed as references. This ensures that modifications performed within the member method are reflected in the object.
shaalaa.com
Is there an error in this question or solution?
Chapter 7: Constructors - EXERCISES [Page 418]