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
Overloaded methods are multiple methods in a class with the same name but different parameters. They allow you to perform similar operations on different types of data.
The method signature consists of the method name and its parameter list. It helps distinguish between overloaded methods.
Parameter Types: These are the specific data types used as input in an overloaded method. They determine which version of the method will be called.
Compile-time Polymorphism: Overloaded methods are an example of compile-time polymorphism, where the appropriate method is determined during compilation based on the arguments passed.