Reference-type variables (called references) store the location of an object in the memory.
What are Reference-type variables?
- A reference type variable refers to memory-based data that is frequently referred to as the heap.
- The heap is typically utilized for data that has a longer lifespan. The same referred data may be referenced by many variables. Objects serve as examples of reference-type variables.
- A copy of the reference rather than the actual data is supplied when a reference type variable is passed to a method.
- If you update a value inside the reference type variable, it will also change the value outside the method since the value outside the method links to the same reference place in memory.
- A warning arises when you try to assign the variable to a new object inside the procedure.
To learn more about reference type variables with the given link
https://brainly.com/question/14432025
#SPJ4