Methods

We turn our attention now to the syntax used to define methods within a class. Although the syntax for methods varies widely from language to language, all methods will have the following features.

Now let us see how these parts are expressed in different langauges.

[audio] [real] Text to accompany slide16, in Chapter 4 of An Introduction to Object-Oriented Programming