English

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

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]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 7 Constructors
EXERCISES | Q V. 5. | Page 418
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×