Top
Previous Next
The Java Language CS 161 - Java

Methods

Called functions, subroutines, procedures among other names in other programming languages

"A method is a named sequence of instructions ..."

An action that you want an object to perform one or more times

public class Something {

   // instance variable definitions, if any

   // method definitions that pertain to actions that Something can be
   // asked to do

   public ReturnDataType action name {
     ...
   }

}

Top
Previous Next
jwd