Hi, I'm just a little confused as to what to we call a reference.
A ob=new B();
Here B is a subclass of A. Should we say "ob is a reference of A which has been assigned an object of B" or "ob is a variable of A which has been assigned a reference of B" ?
When we are assigning an object to a variable (by new()) (Like to ob, in the above code), we're actually assigning the reference of the area allocated by new, to the variable ob. So, how can u call ob a reference even before its assigned an object's reference. Like
Even here, will we call ob as a reference of A?