LaunchCode logo
  1. Contents
  2. 11. Methods

11. MethodsΒΆ

  1. 11.1. Introduction
    1. 11.1.1. What is a Method?
    2. 11.1.2. Check Your Understanding
  2. 11.2. Method Signatures and Calls
    1. 11.2.1. Method Signatures
    2. 11.2.2. Creating a Method
      1. 11.2.2.1. Method Calls
    3. 11.2.3. Invoking the Method
    4. 11.2.4. Check Your Understanding
  3. 11.3. Using Methods
    1. 11.3.1. return vs. void Methods
    2. 11.3.2. Parameters and Arguments
    3. 11.3.3. Named and Optional Arguments
      1. 11.3.3.1. Named Arguments
      2. 11.3.3.2. Optional Arguments
    4. 11.3.4. Check Your Understanding
  4. 11.4. Recursive Methods
    1. 11.4.1. FactorialRecursive A Recursive Example
    2. 11.4.2. FactorialLoop A Loop Example
    3. 11.4.3. Recursion or Loops?
    4. 11.4.4. Check Your Understanding
  5. 11.5. Scope
    1. 11.5.1. Class Level Scope
    2. 11.5.2. Method Level Scope
    3. 11.5.3. Block Level Scope
    4. 11.5.4. Check Your Understanding
  6. 11.6. Exercises: Methods
    1. 11.6.1. Getting Started
    2. 11.6.2. Rectangles
    3. 11.6.3. Triangles
    4. 11.6.4. Diamonds
    5. 11.6.5. Bonus Mission
  7. 11.7. Studio: Methods
    1. 11.7.1. Getting Started
    2. 11.7.2. Creating A Better Reverse Method
    3. 11.7.3. Warm-Up: Reverse a Number Array
    4. 11.7.4. Reverse a String
    5. 11.7.5. Palindrome Checker
  • ← 10.10. Studio: Counting Characters
  • 11.1. Introduction →

Back to top

Page Source