Introduction to OOP | Chapter 27: Implementation : | next | previous | audio | real | text |
How is it that this mechanism can work? Normally you cannot change the types of arguments (recall that the receiver is just an argument).
Solution is that the data associated with an instance of a child class is an extension of the data associated with the parent class.
This means that data fields in the parent class will be found at the same offset in the child class.