1.

What Do You Mean By Saying A "class Is A Reference Type"?

Answer»

A class is a REFERENCE type means when an object of the class is created, the VARIABLE to which the object is assigned holds only a reference to that MEMORY. When the object reference is assigned to a NEW variable, the new variable refers to the original object. Changes made through one variable are reflected in the other variable because they both REFER to the same data.

A class is a reference type means when an object of the class is created, the variable to which the object is assigned holds only a reference to that memory. When the object reference is assigned to a new variable, the new variable refers to the original object. Changes made through one variable are reflected in the other variable because they both refer to the same data.



Discussion

No Comment Found