Home Segments Index Top Previous Next

87: Mainline

The fatToCalories method is to be sent to instances of the Integer class. Accordingly, be sure that the instance button is selected, rather than the class button, in the instance–object window, so that you will define an instance method. You learn about the role of the class button in Segment••missing reference••.