Advertisements
Advertisements
प्रश्न
Why is an object not passed to a constructor by value? Explain.
लघु उत्तरीय
उत्तर
Objects are passed as references. This ensures that modifications performed within the member method are reflected in the object.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Constructors - EXERCISES [पृष्ठ ४१८]