हिंदी

Why is an object not passed to a constructor by value? Explain.

Advertisements

प्रश्न

Why is an object not passed to a constructor by value? Explain. 

लघु उत्तरीय
Advertisements

उत्तर

Objects are passed as references. This ensures that modifications performed within the member method are reflected in the object. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Constructors - EXERCISES [पृष्ठ ४१८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 7 Constructors
EXERCISES | Q V. 5. | पृष्ठ ४१८
Advertisements
Share
Notifications



      Forgot password?
Use app×