Let's say we have a class:
class Class1
{
int i = 1;
}
and we have a variable:
Class1 ob1 = new Class1();
- Does a reference itself stored in a variable
ob1
store the information that it refers to an object ofClass1
? - Does the part of the heap where
Class1
is stored store the information that it is ofClass1
type? - How does logically looks like this information? It's a string like application1.Class1 or a reference to some reference types pool?
If you can recommend the source of such information I'll be very grateful for providing it I can't find it in the reference book.