{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "99c48fb0",
   "metadata": {},
   "source": "(defining-own-functions)=\n\n# Methods\n\n<!-- chapter-intro -->\n\nLong programs become unmanageable when all code lives in one place. Methods let you name a block of code, give it inputs, and call it from anywhere. This chapter shows how to define, design, and invoke methods in C#.\n"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "id": "7ce81179",
   "source": "<h2>Why this chapter matters</h2>\n\nMethods are the primary tool for organizing code and avoiding repetition:\n\n- repeated logic in one place means one fix reaches every caller\n- named methods make programs readable — code tells a story\n- parameters make methods flexible; return values make them composable\n- static methods let you organize helper logic without objects\n"
  },
  {
   "cell_type": "markdown",
   "id": "20c6e0a1",
   "metadata": {},
   "source": "<h2>Learning goals</h2>\n\nBy the end of this chapter, you should be able to:\n\n- define methods with parameters and return types\n- call methods and use their return values\n- design a method signature that communicates intent clearly\n- understand the difference between `void` and value-returning methods\n\n<h2>Chapter flow</h2>\n\n```{tableofcontents}\n```\n"
  }
 ],
 "metadata": {
  "jupytext": {
   "cell_metadata_filter": "-all",
   "main_language": "python",
   "notebook_metadata_filter": "-all"
  },
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}