Please enable JavaScript to use CodeHS

Chapter 2

Using Objects

2.3 Calling a Void Method


Method Signature

Using Methods

Calling Methods

User Input and the Scanner Class

Area of a Rectangle

Program Flow

Using the Scanner Class

Increase/Decrease by 1

Int Before String

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Birthday Budget


Term Definition
Method Procedures that allow us to control and define the behavior of an object.
Access Specifier Determines who has access to using the method when writing classes and objects.
Return Type Indicates what type value is being returned from the method
Calling a Method objectName.method()
Procedural Abstraction The ability to use methods and programs that we do not fully understand, or are unable to write.