ABSTRACT

This chapter describes the differences between methods and functions. It introduces function literals in each of the three languages and shows how function literals can be used to generalize operations such as sorting.

A method is not a function. The distinction is important because functions can be used in ways that methods cannot.