1. Describe method should do 2. determine inputs 2. types of parameters 4. write psuedocode for desired results 5. IMpelement the modethod body 6. test method
Back
return
Front
specify the result of a method
ex. public static double cubeVolume(double sideLength)
{
return sideLength sideLength sideLength;
}
Back
methods
Front
procedures/functions (verbs), deposit, withdrawal
Back
Method
Front
instructions that are called
Back
Name a way to avoid multiple return statements
Front
You can avoid multiple returns by storing the method result in a variable that you return in the last statement of the method.
Back
return statement
Front
specifies the result of a method
Back
stating private in an object meaning. not visible outside the class.
Front
other classes cannot access, must use methods to access or change. serves a ** purpose with larger programs when deemed private.