Explain Object reference

Object reference: It is a reference to an object. Languages other than Java employ terms like pointer or address or. It is significant to keep the difference clear between an object and its reference. The variable like argo

Ship argo;

is capable of holding an object reference, however is not, itself, an object. This can refer to merely a single object at a time; however it is able to hold dissimilar object references from time to time.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.