Intro. to Programming Workshop - 4

Tutorials

Welcome back to the Intro. to Programming Workshops! This week's workshop will focus on methods!
Latest additions to the base source code for PokeVentures include player walk animations and switching player characters (press 1, 2 or 3).

Resources

Summary

Methods

List of modifiers:

Syntax:

modifiers return_type methodName(Parameter list) {  
    code_block
}

Example:

public static double square(double a) {  
    double result = a*a;
    return result;
}