An important aspect of inheritance is that the data areas in subclass always extend the data areas in parent classes. The offsets of the fields from the parent class will remain fixed.
Thus, an function in the parent class can manipulate fields by offset, and they will be valid regardless of the type of object being used.