Swipe to navigate through the chapters of this book
A method is a series of statements combined into one block inside a class and given a name. In the Cold War days, these were called sub-routines, and many other languages call them functions. However, the main difference between a method and a function is that a method has to be associated with a class, whereas a function does not.
Please log in to get access to this content
To get access to this content you need the following product:
Adam L. Davis
- Sequence number
- Chapter number
- Chapter 7