Introduction to OOP Chapter 17: The Polymorphic Variable : next previous audio real text

The Receiver Variable

The most common polymorphic variable is the one that holds the receiver during the execution of a method.

Call this in C++ and Java, self in Smalltalk and Objective-C, current in Eiffel.

Holds the actual value (the dynamic class) during execution, not the static class.

Intro OOP, Chapter 17, Slide 03