About references

Thanks but i meant in the memory, when A have the reference of B ( B was upcasted )
Does A have only the reference of B or does it have the reference of B and the class that was upcasted to become B?