Introduction to OOP: Chapter 21 : Implementation [next] [previous] [audio] [real] [text]

Objects as Extensions of Records

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.

Intro OOP, Chapter 21, Slide 4