Parameter

noun

say it: “puh-RAM-uh-ter” /pəˈræmɪtər/

A value handed to a method or function when it is called.

What is a parameter?

A parameter is a value a method or function takes when it's called, like an ingredient handed to a recipe. In totalInStock(counts), counts is the parameter: whatever list the call hands in. The value the method hands back is its return value.

In a sentence

  • “The method's parameter is the list of counts it adds up.”

Level: Novice · More Software Development terms at this level

Updated

In other subjects