Introduction to OOP Chapter 27: Implementation : next previous audio real text

Inherited Methods

Now consider those methods defined in a parent class, but used by a child class.

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.


Intro OOP, Chapter 27, Slide 07