Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 2.5 Calling a Void Method with Parameters

Description

In this lesson, students will build on what they have learned and discover how to call a void method with parameters. Just as constructors can have parameter values, methods can have formal parameters that affect the state of the object as well. Methods can also be overloaded just like constructors! This lesson corresponds with AP Computer Science A topic 2.4.


Objective

Students will be able to:

  • Call non-static void methods with parameters