2.4 Calling a Void Method with Parameters
Enduring Understanding
Some objects or concepts are so frequently represented that programmers can draw upon existing code that has already been tested, enabling them to write solutions more quickly and with a greater degree of confidence.
Learning Objective
Call non-static void methods with parameters.
Essential Knowledge
A method signature for a method with parameters consists of the method name and the ordered list of parameter types.
Values provided in the parameter list need to correspond to the order and type in the method signature.
Methods are said to be overloaded when there are multiple methods with the same name but a different signature.
Last updated
Was this helpful?