Home Segments Index Top Previous Next

261: Sidetrip

When you send a class method, Smalltalk treats the receiver as an instance of its metaclass, and finds a corresponding instance method in the metaclass hierarchy using the method-finding algorithm described in Segment 237. Frequently, the search continues up to the Behavior class, which offers both new and new: methods.