Printing a visible top-level value (or one capture.output captures) dispatches to the print methods in scope, so the expression calls them: those for the classes the value may have, and what their NextMethod() may run, every one if the classes are not known.
Printing a visible top-level value (or one
capture.outputcaptures) dispatches to theprintmethods in scope, so the expression calls them: those for the classes the value may have, and what theirNextMethod()may run, every one if the classes are not known.