What is the difference between a parameter and an argument?

A parameter is a definition of what will be sent to a method. A parameter occurs within the definition of a method. An argument is a value that is passed to a method.

No comments:

Post a Comment