Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
A method name is an identifier that represents an action or behavior that an object can perform. It may also include optional parameters, which are values passed into the method for it to use during its execution.
Related terms
Return type: The return type specifies the type of value that will be returned by a method after its execution.