So all this time I thought that when you do something like ObjectA.field1, ObjectA is just like any value on the stack and you basically access its fields. Now I was going throu
To get the field1 of some ObjectA of some ClassAthe computer has to have the address of the memory zone containing ObjectA, it knows (statically) the offset (in bytes) for field1 (of ClassA) so it can retrieve the field1 by adding that offset to the adress of ObjectA.