Next: Class variables, method variables
Up: 6 Multiple methods
Previous: Other information about methods
Contents
Notice from the above examples that method names follow several conventions.
- Method names are often verbs because methods should do something.
- A method should do what its name says - no more or less!
- Start names with a lower case letter, just like variables.
- Subsequent words in the name start with a capital letter, just like variables
RHUL Dept. of Physics