Introduction to OOP: Chapter 11: Replacement and Refinement [previous] [audio] [real] [text]

Refinement in Smalltalk, Java and Objective-C

In Smalltalk, Java and Objective-C, a message sent to the receiver super will automatically go to the parent class, using self as current receiver.

Example, following in class string:

= value
	" if arg is a string, see if equal "
	(value isKindOf: String)
		ifTrue: [ ^ super = value ]
		ifFalse: [ ^ false ]
Intro OOP, Chapter 11, Slide 20