i have a shadow of doubt about the concept of object declaration
i would illustrate my doubt with an example
The statement
superclass RefVariable = new subclass();
it will create memory space for an object of "subclass" class and would appoint a variable of type superclass named as RefVariable with the reference of the object created .....
Now my questions rare :
what this RefVariable actually contains?
what are its capability?
Is it carrying a pointer to the superclass object?
Or is it carrying some sort of address to a memory location?
I am really confused with this....please help