Home Segments Index Top Previous Next

238: Mainline

Sometimes, multiple methods with the same name show up in a subclass–superclass chain. In such situations, the method-finding algorithm described in Segment 237 dictates that Smalltalk uses the method found closer to the message receiver. The other methods—the ones found higher in the subclass–superclass chain—are said to be overridden or shadowed.