मराठी

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

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 [पृष्ठ ४१८]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×