Method

noun

say it: “METH-ud” /ˈmɛθəd/

A named block of code in a class that does one job and can take inputs and return a result.

What is Method in C#?

Method — A named block of code that performs an action and can return a value.

In a sentence

  • “I moved the tax calculation into a method called AddTax, so I can call it anywhere.”

Level: Novice · More C# terms at this level

Updated

In other subjects