Difference Between a Parameter & Argument

A parameter is part of a method's signature declaration and is used as a receiving container for an argument.

An argument is an actual value literal that is passed to a method that performs operations based on and an arguments value.

This graphic illustrates the difference:

No comments:

Post a Comment