Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

method

A named block of code you can call, optionally with inputs and a result.

A method is a named member containing a block of statements; it declares a return type (or void) and a parameter list, and is invoked by name with arguments.

Examples

  • static decimal Total(decimal price, int qty) => price * qty; declares a method, and Total(2.50m, 4) calls it.

Read the full section →