You are previewing Visual C# How to Program.
O'Reilly logo
Visual C# How to Program

Book Description

For all basic-to-intermediate level courses in Visual C# programming.

An informative, engaging, challenging and entertaining introduction to Visual C#

Created by world-renowned programming instructors Paul and Harvey Deitel, Visual C# How to Program, Sixth Edition  introduces  students to the world of desktop, mobile and web app development with Microsoft’s® Visual C#® programming language. Students will use .NET platform and the Visual Studio® Integrated Development Environment to write, test, and debug applications and run them on a wide variety of Windows® devices.

At the heart of the book is the Deitel signature live-code approach—rather than using code snippets, the authors present concepts in the context of complete working programs followed by sample executions. Students begin by getting comfortable with the Visual Studio Community edition IDE and basic C# syntax. Next, they build their skills one step at a time, mastering control structures, classes, objects, methods, variables, arrays, and the core techniques of object-oriented programming. With this strong foundation in place, the authors introduce more sophisticated techniques, including searching, sorting, data structures, generics, and collections. Additional practice is provided through a broad range of example programs and exercises selected from computer science, business, education, social issues, personal utilities, sports, mathematics, puzzles, simulation, game playing, graphics, multimedia and many other areas.

Table of Contents

  1. Visual C#<sup xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">&#174;</sup> HOW TO PROGRAM HOW TO PROGRAM
  2. Deitel<sup xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">&#174;</sup> Series Page Series Page
  3. Visual C#<sup xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">&#174;</sup> HOW TO PROGRAM HOW TO PROGRAM
  4. Trademarks
  5. Contents
  6. Online Topics
  7. Preface
    1. Contacting the Authors
    2. Join the Deitel & Associates, Inc. Social Media Communities
    3. Object-Oriented Programming with an Early Objects Approach
    4. New C# 6 Features
    5. Interesting, Entertaining and Challenging Exercises
    6. A Tour of the Book
    7. A Tour of the Online Content
    8. Teaching Approach
    9. Obtaining the Software Used in <cite xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Visual C# How to Program, 6/e</cite>
    10. Instructor Supplements
    11. Microsoft DreamSpark™
    12. Reviewers
  8. About Deitel & Associates, Inc.
  9. Before You Begin
  10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1 </span>Introduction to Computers, the Internet and Visual C#Introduction to Computers, the Internet and Visual C#
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.2 </span>Computers and the Internet in Industry and ResearchComputers and the Internet in Industry and Research
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.3 </span>Hardware and SoftwareHardware and Software
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.3.1 </span>Moore&#8217;s LawMoore’s Law
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.3.2 </span>Computer OrganizationComputer Organization
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.4 </span>Data HierarchyData Hierarchy
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.5 </span>Machine Languages, Assembly Languages and High-Level LanguagesMachine Languages, Assembly Languages and High-Level Languages
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.6 </span>Object TechnologyObject Technology
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.7 </span>Internet and World Wide WebInternet and World Wide Web
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8 </span>C#C#
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.1 </span>Object-Oriented ProgrammingObject-Oriented Programming
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.2 </span>Event-Driven ProgrammingEvent-Driven Programming
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.3 </span>Visual ProgrammingVisual Programming
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.4 </span>Generic and Functional ProgrammingGeneric and Functional Programming
        1. Generic Programming
        2. Functional Programming
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.5 </span>An International StandardAn International Standard
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.6 </span>C# on Non-Windows PlatformsC# on Non-Windows Platforms
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.7 </span>Internet and Web ProgrammingInternet and Web Programming
      8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.8 </span>Asynchronous Programming with Asynchronous Programming with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M01_PAUL1540_06_SE_C01.xhtml#P700101285300000000000000002CCC3">async</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M01_PAUL1540_06_SE_C01.xhtml#P700101285300000000000000002CCC4">await</code>
      9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.8.9 </span>Other Key Programming LanguagesOther Key Programming Languages
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.9 </span>Microsoft&#8217;s .NETMicrosoft’s .NET
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.9.1 </span>.NET Framework.NET Framework
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.9.2 </span>Common Language RuntimeCommon Language Runtime
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.9.3 </span>Platform IndependencePlatform Independence
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.9.4 </span>Language InteroperabilityLanguage Interoperability
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.10 </span>Microsoft&#8217;s Windows&#174; Operating SystemMicrosoft’s Windows® Operating System
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.11 </span>Visual Studio Integrated Development EnvironmentVisual Studio Integrated Development Environment
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1.12 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M01_PAUL1540_06_SE_C01.xhtml#P700101285300000000000000002CD36">Painter</code> Test-Drive in Visual Studio Community Test-Drive in Visual Studio Community
    15. Self-Review Exercises
    16. Exercises
    17. Making-a-Difference Exercises
    18. Making-a-Difference Resources
  11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2 </span>Introduction to Visual Studio and Visual ProgrammingIntroduction to Visual Studio and Visual Programming
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2 </span>Overview of the Visual Studio Community 2015 IDEOverview of the Visual Studio Community 2015 IDE
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2.1 </span>Introduction to Visual Studio Community 2015Introduction to Visual Studio Community 2015
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2.2 </span>Visual Studio ThemesVisual Studio Themes
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2.3 </span>Links on the Start PageLinks on the Start Page
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2.4 </span>Creating a New ProjectCreating a New Project
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2.5 </span>New Project Dialog and Project TemplatesNew Project Dialog and Project Templates
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2.6 </span>Forms and ControlsForms and Controls
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.3 </span>Menu Bar and ToolbarMenu Bar and Toolbar
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.4 </span>Navigating the Visual Studio IDENavigating the Visual Studio IDE
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.4.1 </span>Solution ExplorerSolution Explorer
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.4.2 </span>ToolboxToolbox
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.4.3 </span>Properties WindowProperties Window
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.5 </span>Help Menu and Context-Sensitive HelpHelp Menu and Context-Sensitive Help
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.6 </span>Visual Programming: Creating a Simple App that Displays Text and an ImageVisual Programming: Creating a Simple App that Displays Text and an Image
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.7 </span>Wrap-Up Wrap-Up
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.8 </span>Web Resources Web Resources
    11. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.2</span> Overview of the Visual Studio Community 2015 IDE Overview of the Visual Studio Community 2015 IDE
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.3 </span>Menu Bar and ToolbarMenu Bar and Toolbar
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.4 </span>Navigating the Visual Studio IDENavigating the Visual Studio IDE
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.5 </span>Help Menu and Context-Sensitive HelpHelp Menu and Context-Sensitive Help
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.6 </span>Visual Programming: Creating a Simple App that Displays Text and an ImageVisual Programming: Creating a Simple App that Displays Text and an Image
    12. Terminology
    13. Self-Review Exercises
    14. Exercises
      1. Note Regarding Exercises <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2.7&#8211;2.11</span>
  12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3 </span>Introduction to C# App ProgrammingIntroduction to C# App Programming
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.1</span> Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2 </span>Simple App: Displaying a Line of TextSimple App: Displaying a Line of Text
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.1 </span>CommentsComments
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D45F">using</code> Directive Directive
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.3 </span>Blank Lines and WhitespaceBlank Lines and Whitespace
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.4 </span>Class DeclarationClass Declaration
        1. Class Name Convention
        2. Class Declaration’s File Name
        3. Body of a Class Declaration
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D590">Main</code> Method Method
        1. Body of a Method Declaration
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.6 </span>Displaying a Line of TextDisplaying a Line of Text
        1. Statements
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.7 </span>Matching Left (Matching Left (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D5B9">{</code>) and Right () and Right (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D5BA">}</code>) Braces) Braces
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3 </span>Creating a Simple App in Visual StudioCreating a Simple App in Visual Studio
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3.1 </span>Creating the Console AppCreating the Console App
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3.2 </span>Changing the Name of the App FileChanging the Name of the App File
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3.3 </span>Writing Code and Using Writing Code and Using <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">IntelliSense</i>
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3.4 </span>Compiling and Running the AppCompiling and Running the App
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3.5 </span>Errors, Error Messages and the Error List WindowErrors, Error Messages and the Error List Window
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.4 </span>Modifying Your Simple C# AppModifying Your Simple C# App
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.4.1 </span>Displaying a Single Line of Text with Multiple StatementsDisplaying a Single Line of Text with Multiple Statements
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.4.2 </span>Displaying Multiple Lines of Text with a Single StatementDisplaying Multiple Lines of Text with a Single Statement
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.5 </span>String InterpolationString Interpolation
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6 </span>Another C# App: Adding IntegersAnother C# App: Adding Integers
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.1 </span>Declaring the Declaring the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D6B1">int</code> Variable number1 Variable number1
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.2 </span>Declaring Variables Declaring Variables <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D6E2">number2</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D6E3">sum</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.3 </span>Prompting the User for InputPrompting the User for Input
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.4 </span>Reading a Value into Variable Reading a Value into Variable <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D6FF">number1</code>
        1. Possible Erroneous User Input
        2. Assigning a Value to a Variable
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.5 </span>Prompting the User for Input and Reading a Value into Prompting the User for Input and Reading a Value into <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D724">number2</code>
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.6 </span>Summing Summing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D72E">number1</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D72F">number2</code>
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.7 </span>Displaying the Displaying the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D745">sum</code> with with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D746">string</code> Interpolation Interpolation
      8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.8 </span>Performing Calculations in Output StatementsPerforming Calculations in Output Statements
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.7 </span>Memory ConceptsMemory Concepts
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8 </span>ArithmeticArithmetic
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.1 </span>Arithmetic Expressions in Straight-Line FormArithmetic Expressions in Straight-Line Form
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.2 </span>Parentheses for Grouping SubexpressionsParentheses for Grouping Subexpressions
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.3 </span>Rules of Operator PrecedenceRules of Operator Precedence
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.4 </span>Sample Algebraic and C# ExpressionsSample Algebraic and C# Expressions
        1. Evaluation of a Second-Degree Polynomial
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.5 </span>Redundant ParenthesesRedundant Parentheses
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.9 </span>Decision Making: Equality and Relational OperatorsDecision Making: Equality and Relational Operators
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.10 </span>Wrap-UpWrap-Up
    13. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.1 </span>CommentsComments
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D94A">using</code> Directive Directive
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.3 </span>Blank Lines and WhitespaceBlank Lines and Whitespace
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.4 </span>Class DeclarationClass Declaration
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D96C">Main</code> Method Method
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.2.6 </span>Displaying a Line of TextDisplaying a Line of Text
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3.1 </span>Creating the Console AppCreating the Console App
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.3.3 </span><i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Writing Code and Using</i> IntelliSense IntelliSense
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.4.1 </span>Displaying a Single Line of Text with Multiple StatementsDisplaying a Single Line of Text with Multiple Statements
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.4.2 </span>Displaying Multiple Lines of Text with a Single StatementDisplaying Multiple Lines of Text with a Single Statement
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.5 </span>String InterpolationString Interpolation
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.1 </span>Declaring the Declaring the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D9B3">int</code> Variable Variable <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D9B4">number1</code>
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.3 </span>Prompting the User for InputPrompting the User for Input
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.6.6 </span>Summing Summing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D9E3">number1</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M03_PAUL1540_06_SE_C03.xhtml#P700101285300000000000000002D9E4">number2</code>
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.7 </span>Memory ConceptsMemory Concepts
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8 </span>ArithmeticArithmetic
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.1 </span>Arithmetic Expressions in Straight-Line FormArithmetic Expressions in Straight-Line Form
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.2 </span>Parentheses for Grouping SubexpressionsParentheses for Grouping Subexpressions
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.3 </span>Rules of Operator PrecedenceRules of Operator Precedence
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.8.5 </span>Redundant ParenthesesRedundant Parentheses
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3.9 </span>Decision Making: Equality and Relational OperatorsDecision Making: Equality and Relational Operators
    14. Terminology
    15. Self-Review Exercises
    16. Exercises
    17. Making-a-Difference Exercises
  13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4 </span>Introduction to Classes, Objects, Methods and Introduction to Classes, Objects, Methods and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DD29">string</code>ss
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.1 </span>IntroductionIntroduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2 </span>Test-Driving an Test-Driving an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DDBE">Account</code> Class Class
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.1 </span>Instantiating an Object&#8212;Keyword Instantiating an Object—Keyword <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DDD7">new</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.2 </span>Calling Class Calling Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DDE6">Account</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DDE7">GetName</code> Method Method
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.3 </span>Inputting a Name from the UserInputting a Name from the User
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.4 </span>Calling Class Calling Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DE27">Account</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DE28">SetName</code> Method Method
        1. Displaying the Name That Was Entered by the User
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DE53">Account</code> Class with an Instance Variable and Class with an Instance Variable and <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Set</i> and and <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Get</i> Methods Methods
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DE59">Account</code> Class Declaration Class Declaration
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.2 </span>Keyword Keyword <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DE71">class</code> and the Class Body and the Class Body
        1. Identifiers and Camel-Case Naming
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.3 </span>Instance Variable Instance Variable <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DE83">name</code> of Type of Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DE84">string</code>
        1. <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops"><code data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DEA4">null</code></b>&#8212;the Default Initial Value for —the Default Initial Value for <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops"><code data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DEA5">string</code></b> Variables Variables
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DEB2">SetName</code> Method Method
        1. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DEBE">SetName</code>&#8217;s Parameter’s Parameter
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DECF">SetName</code> Parameter List Parameter List
        3. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DED8">SetName</code> Method Body Method Body
        4. Parameters Are Local Variables
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DEE8">GetName</code> Method Method
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.6 </span>Access Modifiers Access Modifiers <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DF02">private</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DF03">public</code>
        1. Default Access for Class Members
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DF32">Account</code> UML Class Diagram UML Class Diagram
        1. Top Compartment
        2. Middle Compartment
        3. Bottom Compartment
        4. Return Types
        5. Parameters
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.4 </span>Creating, Compiling and Running a Visual C# Project with Two ClassesCreating, Compiling and Running a Visual C# Project with Two Classes
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.5 </span>Software Engineering with Software Engineering with <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Set</i> and and <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Get</i> Methods Methods
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DFBD">Account</code> Class with a Property Rather Than Class with a Property Rather Than <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Set</i> and and <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Get</i> Methods Methods
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6.1 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DFCE">AccountTest</code> Using Account&#8217;s Using Account’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DFCF">Name</code> Property Property
        1. Invoking Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DFE1">Account</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002DFE2">Name</code> Property to Get the Name Property to Get the Name
        2. Invoking Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E00E">Account</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E00F">Name</code> Property to Set the Name Property to Set the Name
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E03C">Account</code> Class with an Instance Variable and a Property Class with an Instance Variable and a Property
        1. Property <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E051">Name</code>&#8217;s Declaration’s Declaration
        2. Property <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E067">Name</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E068">get</code> Accessor Accessor
        3. Property <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E07E">Name</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E07F">set</code> Accessor Accessor
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E0A4">Account</code> UML Class Diagram with a Property UML Class Diagram with a Property
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.7 </span>Auto-Implemented PropertiesAuto-Implemented Properties
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E0D0">Account</code> Class: Initializing Objects with Constructors Class: Initializing Objects with Constructors
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.8.1 </span>Declaring an Declaring an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E0ED">Account</code> Constructor for Custom Object Initialization Constructor for Custom Object Initialization
        1. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E0FB">Account</code> Constructor Declaration Constructor Declaration
        2. Constructor Body
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.8.2 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E10B">AccountTest</code>: Initializing : Initializing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E10C">Account</code> Objects When They&#8217;re Created Objects When They’re Created
        1. Default Constructor
        2. There’s No Default Constructor in a Class That Declares a Constructor
        3. Adding the Constructor to Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E141">Account</code>&#8217;s UML Class Diagram’s UML Class Diagram
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E14A">Account</code> Class with a Balance; Processing Monetary Amounts Class with a Balance; Processing Monetary Amounts
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.9.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E151">Account</code> Class with a Class with a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E152">decimal balance</code> Instance Variable Instance Variable
        1. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E16E">Account</code> Class Two-Parameter Constructor Class Two-Parameter Constructor
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E179">Account</code> Property Property <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E17A">Balance</code>
        3. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E19D">set</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E19E">get</code> Accessors with Different Access Modifiers Accessors with Different Access Modifiers
        4. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E1B9">Account</code> <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Class</i> <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E1BA">Deposit</code> Method Method
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.9.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E1D9">AccountTest</code> Class That Uses Class That Uses <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E1DA">Account</code> Objects with Balances Objects with Balances
        1. Displaying the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E1ED">Account</code> Objects&#8217; Initial Balances Objects’ Initial Balances
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E200">string</code> Interpolation Expressions with Formatting Interpolation Expressions with Formatting
        3. Reading a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E24A">decimal</code> Value from the User Value from the User
        4. Making a Deposit
        5. Reading a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E26A">decimal</code> Value and Depositing into Value and Depositing into <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E26B">account2</code>
        6. Duplicated Code in Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E27B">Main</code>
        7. UML Class Diagram for Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E28D">Account</code>
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.10 </span>Wrap-UpWrap-Up
    13. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.1</span> Introduction Introduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2</span> Test-Driving an Test-Driving an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2B6">Account</code> Class Class
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.1 </span>Instantiating an Object&#8212;Keyword Instantiating an Object—Keyword <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2BD">new</code> and Constructors and Constructors
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.2 </span>Calling Class Calling Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2C5">Account</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2C6">GetName</code> Method Method
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.3 </span>Inputting a Name from the UserInputting a Name from the User
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.2.4 </span>Calling Class Calling Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2D5">Account</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2D6">SetName</code> Method Method
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3 </span><i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops"><code data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2DB">Account</code> Class with an Instance Variable and</i> Set Set <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">and</i> Get Get <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Methods</i>
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2E0">Account</code> Class Declaration Class Declaration
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.2 </span>Keyword Keyword <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2E5">class</code> and the Class Body and the Class Body
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.3 </span>Instance Variable Instance Variable <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2F2">name</code> of Type of Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E2F3">string</code>
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E30C">SetName</code> Method Method
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E320">GetName</code> Method Method
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.6 </span>Access Modifiers Access Modifiers <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E327">private</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E328">public</code>
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.3.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E33A">Account</code> UML Class Diagram UML Class Diagram
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.4</span> Creating, Compiling and Running a Visual C# Project with Two Classes Creating, Compiling and Running a Visual C# Project with Two Classes
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.5 </span><i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Software Engineering with</i> Set Set <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">and</i> Get Get <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Methods</i>
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E362">Account</code> <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Class with a Property Rather Than</i> Set Set <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">and</i> Get Get <i xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Methods</i>
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6.1 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E369">AccountTest</code> Using Account&#8217;s Using Account’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E36A">Name</code> Property Property
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E374">Account</code> Class with an Instance Variable and a Property Class with an Instance Variable and a Property
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.6.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E38A">Account</code> UML Class Diagram with a Property UML Class Diagram with a Property
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.7</span> Auto-Implemented Properties Auto-Implemented Properties
      22. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3A6">Account</code> Class: Initializing Objects with Constructors Class: Initializing Objects with Constructors
      23. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.8.1 </span>Declaring an Declaring an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3AD">Account</code> Constructor for Custom Object Initialization Constructor for Custom Object Initialization
      24. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.8.2 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3B8">AccountTest</code>: Initializing : Initializing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3B9">Account</code> Objects When They&#8217;re Created Objects When They’re Created
      25. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3CD">Account</code> Class with a Balance; Processing Monetary Amounts Class with a Balance; Processing Monetary Amounts
      26. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.9.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3D3">Account</code> Class with a Class with a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3D4">decimal balance</code> Instance Variable Instance Variable
      27. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">4.9.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3EB">AccountTest</code> Class That Creates and Uses Class That Creates and Uses <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M04_PAUL1540_06_SE_C04.xhtml#P700101285300000000000000002E3EC">Account</code> Objects Objects
    14. Terminology
    15. Self-Review Exercises
    16. Exercises
    17. Making-a-Difference Exercises
  14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5 </span>Algorithm Development and Control Statements: Part 1Algorithm Development and Control Statements: Part 1
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.1 </span>IntroductionIntroduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.2 </span>AlgorithmsAlgorithms
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.3 </span>PseudocodePseudocode
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4 </span>Control StructuresControl Structures
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.1 </span>Sequence StructureSequence Structure
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.2 </span>Selection StatementsSelection Statements
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.3</span> Iteration Statements Iteration Statements
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.4 </span>Summary of Control StatementsSummary of Control Statements
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E651">if</code> Single-Selection Statement Single-Selection Statement
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E66F">if</code>&#8230;…<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E670">else</code> Double-Selection Statement Double-Selection Statement
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6.1 </span>Nested Nested <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E694">if</code>&#8230;…<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E695">else</code> Statements Statements
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6.2 </span>Dangling-Dangling-<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E6BF">else</code> Problem Problem
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6.3 </span>BlocksBlocks
        1. Syntax and Logic Errors
        2. Empty Statement
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6.4 </span>Conditional Operator (Conditional Operator (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E6EE">?:</code>))
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E71A">Student</code> Class: Nested Class: Nested <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E71B">if</code>&#8230;…<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E71C">else</code> Statements Statements
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E76A">while</code> Iteration Statement Iteration Statement
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.9 </span>Formulating Algorithms: Counter-Controlled IterationFormulating Algorithms: Counter-Controlled Iteration
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.9.1 </span>Pseudocode Algorithm with Counter-Controlled IterationPseudocode Algorithm with Counter-Controlled Iteration
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.9.2 </span>Implementing Counter-Controlled IterationImplementing Counter-Controlled Iteration
        1. Local Variables in <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E7B0">Main</code>
        2. Initialization Phase: Initializing Variables <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E7B9">total</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E7BA">gradeCounter</code>
        3. Processing Phase: Reading 10 Grades from the User
        4. Termination Phase: Calculating and Displaying the Class Average
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.9.3 </span>Integer Division and TruncationInteger Division and Truncation
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10 </span>Formulating Algorithms: Sentinel-Controlled IterationFormulating Algorithms: Sentinel-Controlled Iteration
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.1 </span>Top-Down, Stepwise Refinement: The Top and First RefinementTop-Down, Stepwise Refinement: The Top and First Refinement
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.2 </span>Second RefinementSecond Refinement
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.3 </span>Implementing Sentinel-Controlled IterationImplementing Sentinel-Controlled Iteration
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.4 </span>Program Logic for Sentinel-Controlled IterationProgram Logic for Sentinel-Controlled Iteration
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.5 </span>Braces in a Braces in a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002E86A">while</code> Statement Statement
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.6 </span>Converting Between Simple Types Explicitly and ImplicitlyConverting Between Simple Types Explicitly and Implicitly
        1. Cast Operator
        2. Promotions
        3. Cast Operators for Any Type
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.7 </span>Formatting Floating-Point NumbersFormatting Floating-Point Numbers
        1. Rounding Floating-Point Numbers
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.11 </span>Formulating Algorithms: Nested Control StatementsFormulating Algorithms: Nested Control Statements
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.11.1 </span>Problem StatementProblem Statement
        1. Problem Statement Observations
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.11.2 </span>Top-Down, Stepwise Refinement: Pseudocode Representation of the TopTop-Down, Stepwise Refinement: Pseudocode Representation of the Top
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.11.3 </span>Top-Down, Stepwise Refinement: First RefinementTop-Down, Stepwise Refinement: First Refinement
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.11.4 </span>Top-Down, Stepwise Refinement: Second RefinementTop-Down, Stepwise Refinement: Second Refinement
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.11.5 </span>Complete Second Refinement of the PseudocodeComplete Second Refinement of the Pseudocode
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.11.6 </span>App That Implements the Pseudocode AlgorithmApp That Implements the Pseudocode Algorithm
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.12 </span>Compound Assignment OperatorsCompound Assignment Operators
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.13 </span>Increment and Decrement OperatorsIncrement and Decrement Operators
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.13.1 </span>Prefix Increment vs. Postfix IncrementPrefix Increment vs. Postfix Increment
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.13.2 </span>Simplifying Increment StatementsSimplifying Increment Statements
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.13.3 </span>Operator Precedence and AssociativityOperator Precedence and Associativity
    16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.14 </span>Simple TypesSimple Types
    17. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.15 </span>Wrap-UpWrap-Up
    18. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.2 </span>AlgorithmsAlgorithms
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.3 </span>PseudocodePseudocode
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4 </span>Control StructuresControl Structures
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.1 </span>Sequence StructureSequence Structure
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.2</span> Selection Statements Selection Statements
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.3</span> Iteration Statements Iteration Statements
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.4.4</span> Summary of Control Statements Summary of Control Statements
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EAAB">if</code> Single-Selection Statement Single-Selection Statement
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EAB5">if</code>&#8230;…<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EAB6">else</code> Double-Selection Statement Double-Selection Statement
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6.3</span> Blocks Blocks
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.6.4</span> Conditional Operator ( Conditional Operator (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EAC9">?:</code>))
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EAD3">Student</code> Class: Nested Class: Nested <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EAD4">if</code>&#8230;…<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EAD5">else</code> Statements Statements
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M05_PAUL1540_06_SE_C05.xhtml#P700101285300000000000000002EADB">while</code> Iteration Statement Iteration Statement
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.9.1 </span>Pseudocode Algorithm with Counter-Controlled IterationPseudocode Algorithm with Counter-Controlled Iteration
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.9.2 </span>Implementing Counter-Controlled IterationImplementing Counter-Controlled Iteration
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.9.3 </span>Integer Division and TruncationInteger Division and Truncation
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10 </span>Formulating Algorithms: Sentinel-Controlled IterationFormulating Algorithms: Sentinel-Controlled Iteration
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.1 </span>Top-Down, Stepwise Refinement: The Top and First RefinementTop-Down, Stepwise Refinement: The Top and First Refinement
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.2 </span>Second RefinementSecond Refinement
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.3 </span>Implementing Sentinel-Controlled IterationImplementing Sentinel-Controlled Iteration
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.6 </span>Converting Between Simple Types Explicitly and ImplicitlyConverting Between Simple Types Explicitly and Implicitly
      22. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.10.7 </span>Formatting Floating-Point NumbersFormatting Floating-Point Numbers
      23. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.12 </span>Compound Assignment OperatorsCompound Assignment Operators
      24. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.13 </span>Increment and Decrement OperatorsIncrement and Decrement Operators
      25. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">5.14 </span>Simple TypesSimple Types
    19. Self-Review Exercises
    20. Exercises
    21. Making-a-Difference Exercises
  15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6</span> Control Statements: Part 2 Control Statements: Part 2
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.1</span> Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.2</span> Essentials of Counter-Controlled Iteration Essentials of Counter-Controlled Iteration
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EED7">for</code> Iteration Statement Iteration Statement
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.1</span> A Closer Look at the A Closer Look at the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF0C">for</code> Statement&#8217;s Header Statement’s Header
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.2</span> General Format of a General Format of a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF18">for</code> Statement Statement
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.3 </span>Scope of a Scope of a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF21">for</code> Statement&#8217;s Control Variable Statement’s Control Variable
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.4 </span>Expressions in a Expressions in a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF2C">for</code> Statement&#8217;s Header Are Optional Statement’s Header Are Optional
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.5 </span>Placing Arithmetic Expressions in a Placing Arithmetic Expressions in a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF40">for</code> Statement&#8217;s Header Statement’s Header
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.6 </span>Using a Using a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF4F">for</code> Statement&#8217;s Control Variable in the Statement&#8217;s Body Statement’s Control Variable in the Statement’s Body
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.7 </span>UML Activity Diagram for the UML Activity Diagram for the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF59">for</code> Statement Statement
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.4</span> Examples Using the Examples Using the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EF61">for</code> Statement Statement
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.5</span> App: Summing Even Integers App: Summing Even Integers
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6</span> App: Compound-Interest Calculations App: Compound-Interest Calculations
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6.1 </span>Performing the Interest Calculations with Math Method Performing the Interest Calculations with Math Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002EFEF">pow</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6.2 </span>Formatting with Field Widths and AlignmentFormatting with Field Widths and Alignment
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6.3 </span>Caution: Do Not Use Caution: Do Not Use <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F033">float</code> or or <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F034">double</code> for Monetary Amounts for Monetary Amounts
        1. Applications of Floating-Point Numbers
        2. A Warning About Displaying Rounded Values
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F055">do</code>&#8230;…<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F056">while</code> Iteration Statement Iteration Statement
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F07D">switch</code> Multiple-Selection Statement Multiple-Selection Statement
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.8.1 </span>Using a Using a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F09B">switch</code> Statement to Count A, B, C, D and F Grades Statement to Count A, B, C, D and F Grades
        1. Reading Grades from the User
        2. Processing the Grades
        3. The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F0CB">switch</code> Statement Statement
        4. Consecutive <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F0E6">case</code> Labels Labels
        5. The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F0FC">default</code> Case Case
        6. No “Fall Through” in the C# <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F10E">switch</code> Statement Statement
        7. Displaying the Grade Report
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.8.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F123">switch</code> Statement UML Activity Diagram Statement UML Activity Diagram
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.8.3 </span>Notes on the Expression in Each Notes on the Expression in Each <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F136">case</code> of a of a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F137">switch</code>
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.9 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F14B">AutoPolicy</code> Case Study: Case Study: <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F14C">string</code>s in s in <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F14D">switch</code> Statements Statements
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.10 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F1A1">break</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F1A2">continue</code> Statements Statements
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.10.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F1AA">break</code> Statement Statement
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.10.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F1C7">continue</code> Statement Statement
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11</span> Logical Operators Logical Operators
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.1 </span>Conditional AND (Conditional AND (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F20D">&amp;&amp;</code>) Operator) Operator
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.2 </span>Conditional OR (Conditional OR (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F247">||</code>) Operator) Operator
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.3 </span>Short-Circuit Evaluation of Complex ConditionsShort-Circuit Evaluation of Complex Conditions
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.4 </span>Boolean Logical AND (Boolean Logical AND (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F28C">&amp;</code>) and Boolean Logical OR () and Boolean Logical OR (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F28D">|</code>) Operators) Operators
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.5 </span>Boolean Logical Exclusive OR (Boolean Logical Exclusive OR (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F2A6">^</code>))
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.6 </span>Logical Negation (Logical Negation (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F2D0">!</code>) Operator) Operator
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.7</span> Logical Operators Example Logical Operators Example
        1. Precedence and Associativity of the Operators Presented So Far
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.12</span> Structured-Programming Summary Structured-Programming Summary
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.13</span> Wrap-Up Wrap-Up
    16. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.2 </span>Essentials of Counter-Controlled IterationEssentials of Counter-Controlled Iteration
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F426">for</code> Iteration Statement Iteration Statement
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.1 </span>A Closer Look at the A Closer Look at the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F42D">for</code> Statement&#8217;s Header Statement’s Header
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.2 </span>General Format of a General Format of a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F433">for</code> Statement Statement
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.3 </span>Scope of a Scope of a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F43D">for</code> Statement&#8217;s Control Variable Statement’s Control Variable
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.3.5 </span>Placing Arithmetic Expressions in a Placing Arithmetic Expressions in a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F443">for</code> Statement&#8217;s Header Statement’s Header
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6 </span>App: Compound-Interest CalculationsApp: Compound-Interest Calculations
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6.1 </span>Performing the Interest Calculations with Math Method Performing the Interest Calculations with Math Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F451">pow</code>
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6.2 </span>Formatting with Field Widths and AlignmentFormatting with Field Widths and Alignment
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.6.3 </span>Caution: Do Not Use Caution: Do Not Use <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F466">float</code> or or <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F467">double</code> for Monetary Amounts for Monetary Amounts
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F46F">do</code>&#8230;…<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F470">while</code> Iteration Statement Iteration Statement
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F47D">switch</code> Multiple-Selection Statement Multiple-Selection Statement
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.8.1 </span>Using a Using a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F483">switch</code> Statement to Count A, B, C, D and F Grades. Statement to Count A, B, C, D and F Grades.
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.10.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4A7">break</code> Statement Statement
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.10.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4B3">continue</code> Statement Statement
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11 </span>Logical OperatorsLogical Operators
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.1 </span>Conditional AND (Conditional AND (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4C9">&amp;&amp;</code>) Operator) Operator
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.2</span> Conditional OR ( Conditional OR (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4D0">||</code>) Operator) Operator
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.3 </span>Short-Circuit Evaluation of Complex ConditionsShort-Circuit Evaluation of Complex Conditions
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.4 </span>Boolean Logical AND (Boolean Logical AND (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4DF">&amp;</code>) and Boolean Logical OR () and Boolean Logical OR (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4E0">|</code>) Operators) Operators
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.5 </span>Boolean Logical Exclusive OR (Boolean Logical Exclusive OR (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4E9">^</code>))
      22. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.11.6 </span>Logical Negation (Logical Negation (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M06_PAUL1540_06_SE_C06.xhtml#P700101285300000000000000002F4F5">!</code>) Operator) Operator
      23. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">6.12 </span>Structured-Programming SummaryStructured-Programming Summary
    17. Terminology
    18. Self-Review Exercises
    19. Exercises
    20. Making-a-Difference Exercises
  16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7</span> Methods: A Deeper Look Methods: A Deeper Look
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.2</span> Packaging Code in C# Packaging Code in C#
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.2.1</span> Modularizing Programs Modularizing Programs
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.2.2</span> Calling Methods Calling Methods
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F7C9">static</code> Methods, Methods, <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F7CA">static</code> Variables and Class Variables and Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F7CB">Math</code>
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F7DA">Math</code> Class Methods Class Methods
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F875">Math</code> Class Constants Class Constants <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F876">PI</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F877">E</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3.3</span> Why Is Why Is <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F89B">Main</code> Declared Declared <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F89C">static</code>??
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3.4</span> Additional Comments About Additional Comments About <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F8B0">Main</code>
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4</span> Methods with Multiple Parameters Methods with Multiple Parameters
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.1</span> Keyword Keyword <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F8D2">static</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.2</span> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F8DD">Maximum</code>
        1. Logic of Determining the Maximum Value
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.3</span> Assembling Assembling <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F91A">string</code>s with Concatenations with Concatenation
        1. Anything Can Be Converted to a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F93A">string</code>
        2. Formatting <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F951">string</code>s with s with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F952">string</code> Interpolation Interpolation
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.4</span> Breaking Apart Large Breaking Apart Large <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F95E">string</code> Literals Literals
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.5</span> When to Declare Variables as Fields When to Declare Variables as Fields
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.6</span> Implementing Method Implementing Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F98A">Maximum</code> by Reusing Method by Reusing Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F98B">Math.Max</code>
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.5</span> Notes on Using Methods Notes on Using Methods
      1. Three Ways to Call a Method
        1. Three Ways to Return from a Method
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F9CF">static</code> Members Can Access Only the Class&#8217;s Other Members Can Access Only the Class’s Other <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002F9D0">static</code> Members Directly Members Directly
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.6</span> Argument Promotion and Casting Argument Promotion and Casting
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.6.1</span> Promotion Rules Promotion Rules
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.6.2</span> Sometimes Explicit Casts Are Required Sometimes Explicit Casts Are Required
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.7</span> The .NET Framework Class Library The .NET Framework Class Library
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8</span> Case Study: Random-Number Generation Case Study: Random-Number Generation
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.1</span> Creating an Object of Type Creating an Object of Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FADD">Random</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.2</span> Generating a Random Integer Generating a Random Integer
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.3</span> Scaling the Random-Number Range Scaling the Random-Number Range
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.4</span> Shifting Random-Number Range Shifting Random-Number Range
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.5</span> Combining Shifting and Scaling Combining Shifting and Scaling
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.6</span> Rolling a Six-Sided Die Rolling a Six-Sided Die
        1. Rolling a Six-Sided Die 60,000,000 Times
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.7</span> Scaling and Shifting Random Numbers Scaling and Shifting Random Numbers
      8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.8</span> Repeatability for Testing and Debugging Repeatability for Testing and Debugging
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9</span> Case Study: A Game of Chance; Introducing Enumerations Case Study: A Game of Chance; Introducing Enumerations
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.1</span> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FB70">RollDice</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.2</span> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FB7D">Main</code>&#8217;s Local Variables’s Local Variables
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FB8D">enum</code> Type Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FB8E">Status</code>
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.4</span> The First Roll The First Roll
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FBB5">enum</code> Type Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FBB6">DiceNames</code>
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.6</span> Underlying Type of an Underlying Type of an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FBCC">enum</code>
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.7</span> Comparing Integers and Comparing Integers and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FBD8">enum</code> Constants Constants
        1. Additional Rolls of the Dice
        2. Control Statements in the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FBFC">Craps</code> Example Example
        3. Code Snippets for Auto-Implemented Properties
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.10</span> Scope of Declarations Scope of Declarations
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11</span> Method-Call Stack and Activation Records Method-Call Stack and Activation Records
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.1</span> Method-Call Stack Method-Call Stack
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.2</span> Stack Frames Stack Frames
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.3</span> Local Variables and Stack Frames Local Variables and Stack Frames
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.4</span> Stack Overflow Stack Overflow
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.5</span> Method-Call Stack in Action Method-Call Stack in Action
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.12</span> Method Overloading Method Overloading
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.12.1</span> Declaring Overloaded Methods Declaring Overloaded Methods
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.12.2</span> Distinguishing Between Overloaded Methods Distinguishing Between Overloaded Methods
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.12.3</span> Return Types of Overloaded Methods Return Types of Overloaded Methods
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.13</span> Optional Parameters Optional Parameters
    16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.14</span> Named Parameters Named Parameters
    17. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.15</span> C# 6 Expression-Bodied Methods and Properties C# 6 Expression-Bodied Methods and Properties
    18. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.16</span> Recursion Recursion
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.16.1</span> Base Cases and Recursive Calls Base Cases and Recursive Calls
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.16.2</span> Recursive Factorial Calculations Recursive Factorial Calculations
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.16.3</span> Implementing Factorial Recursively Implementing Factorial Recursively
    19. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.17</span> Value Types vs. Reference Types Value Types vs. Reference Types
    20. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.18</span> Passing Arguments By Value and By Reference Passing Arguments By Value and By Reference
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.18.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FE12">ref</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FE13">out</code> Parameters Parameters
        1. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FE18">ref</code> Parameters Parameters
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FE21">out</code> Parameters Parameters
        3. Passing Reference-Type Variables by Reference
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.18.2</span> Demonstrating Demonstrating <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FE35">ref</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FE36">out</code> and Value Parameters and Value Parameters
    21. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.19</span> Wrap-Up Wrap-Up
    22. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.1</span> Introduction Introduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.2</span> Packaging Code in C# Packaging Code in C#
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.2.1</span> Modularizing Programs Modularizing Programs
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEA1">static</code> Methods, Methods, <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEA2">static</code> Variables and Class Variables and Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEA3">Math</code>
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEAC">Math</code> Class Methods Class Methods
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEB1">Math</code> Class Constants Class Constants <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEB2">PI</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEB3">E</code>
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.3.4</span> Additional Comments About Additional Comments About <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEC4">Main</code>
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.2</span> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FECB">Maximum</code>
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.3</span> Assembling Assembling <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FED7">string</code>s with Concatenations with Concatenation
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.4.4</span> Breaking Apart Large Breaking Apart Large <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FEE7">string</code> Literals Literals
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.5</span> Notes on Declaring and Using Methods Notes on Declaring and Using Methods
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.6</span> Argument Promotion and Casting Argument Promotion and Casting
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.6.1</span> Promotion Rules Promotion Rules
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.6.2</span> Sometimes Explicit Casts Are Required Sometimes Explicit Casts Are Required
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.7</span> The .NET Framework Class Library The .NET Framework Class Library
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.2</span> Generating a Random Integer Generating a Random Integer
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.3</span> Scaling the Random-Number Range Scaling the Random-Number Range
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.8.8</span> Repeatability for Testing and Debugging Repeatability for Testing and Debugging
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FF30">enum</code> Type Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FF31">Status</code>
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FF3C">enum</code> Type Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FF3D">DiceNames</code>
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.9.6</span> Underlying Type of an Underlying Type of an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FF4B">enum</code>
      22. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.10</span> Scope of Declarations Scope of Declarations
      23. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11</span> Method-Call Stack and Activation Records Method-Call Stack and Activation Records
      24. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.1</span> Method-Call Stack Method-Call Stack
      25. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.2</span> Stack Frames Stack Frames
      26. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.3</span> Local Variables and Stack Frames Local Variables and Stack Frames
      27. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.11.4</span> Stack Overflow Stack Overflow
      28. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.12.1</span> Declaring Overloaded Methods Declaring Overloaded Methods
      29. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.12.2</span> Distinguishing Between Overloaded Methods Distinguishing Between Overloaded Methods
      30. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.12.3</span> Return Types of Overloaded Methods Return Types of Overloaded Methods
      31. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.13</span> Optional Parameters Optional Parameters
      32. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.14</span> Named Parameters Named Parameters
      33. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.15</span> C# 6 Expression-Bodied Methods and Properties C# 6 Expression-Bodied Methods and Properties
      34. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.16</span> Recursion Recursion
      35. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.16.1</span> Base Cases and Recursive Calls Base Cases and Recursive Calls
      36. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.16.2</span> Recursive Factorial Calculations Recursive Factorial Calculations
      37. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.17</span> Value Types vs. Reference Types Value Types vs. Reference Types
      38. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.18</span> Passing Arguments by Value and by Reference Passing Arguments by Value and by Reference
      39. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">7.18.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FFE2">ref</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M07_PAUL1540_06_SE_C07.xhtml#P700101285300000000000000002FFE3">out</code> Parameters Parameters
    23. Terminology
    24. Self-Review Exercises
    25. Exercises
    26. Making-a-Difference Exercises
  17. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8</span> Arrays; Introduction to Exception Handling Arrays; Introduction to Exception Handling
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.1</span> Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.2</span> Arrays Arrays
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.3</span> Declaring and Creating Arrays Declaring and Creating Arrays
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4</span> Examples Using Arrays Examples Using Arrays
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.1</span> Creating and Initializing an Array Creating and Initializing an Array
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.2</span> Using an Array Initializer Using an Array Initializer
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.3</span> Calculating a Value to Store in Each Array Element Calculating a Value to Store in Each Array Element
        1. Declaring a Named Constant with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P70010128530000000000000000303F0">const</code>
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.4</span> Summing the Elements of an Array Summing the Elements of an Array
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.5</span> Iterating Through Arrays with Iterating Through Arrays with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030414">foreach</code>
        1. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030438">foreach</code> vs. vs. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030439">for</code>
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.6</span> Using Bar Charts to Display Array Data Graphically; Introducing Type Inference with Using Bar Charts to Display Array Data Graphically; Introducing Type Inference with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030443">var</code>
        1. Implicitly Typed Local Variables and Keyword <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030471">var</code>
        2. More on Implicitly Typed Local Variables
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.7</span> Using the Elements of an Array as Counters Using the Elements of an Array as Counters
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5</span> Using Arrays to Analyze Survey Results; Intro to Exception Handling Using Arrays to Analyze Survey Results; Intro to Exception Handling
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.1</span> Summarizing the Results Summarizing the Results
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.2</span> Exception Handling: Processing the Incorrect Response Exception Handling: Processing the Incorrect Response
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.3</span> The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030503">try</code> Statement Statement
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.4</span> Executing the Executing the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P700101285300000000000000003050E">catch</code> Block Block
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030525">Message</code> Property of the Exception Parameter Property of the Exception Parameter
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.6</span> Case Study: Card Shuffling and Dealing Simulation Case Study: Card Shuffling and Dealing Simulation
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.6.1</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P700101285300000000000000003053C">Card</code> and Getter-Only Auto-Implemented Properties and Getter-Only Auto-Implemented Properties
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.6.2</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P700101285300000000000000003056F">DeckOfCards</code>
        1. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P700101285300000000000000003058C">DeckOfCards</code>: Constructor: Constructor
        2. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P70010128530000000000000000305B5">DeckOfCards</code>: : <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P70010128530000000000000000305B6">Shuffle</code> Method Method
        3. Recommendation: Use an Unbiased Shuffling Algorithm
        4. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P70010128530000000000000000305E0">DeckOfCards</code>: : <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P70010128530000000000000000305E1">DealCard</code> Method Method
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.6.3</span> Shuffling and Dealing Cards Shuffling and Dealing Cards
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.7</span> Passing Arrays and Array Elements to Methods Passing Arrays and Array Elements to Methods
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.8</span> Case Study: GradeBook Using an Array to Store Grades Case Study: GradeBook Using an Array to Store Grades
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.9</span> Multidimensional Arrays Multidimensional Arrays
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.9.1</span> Rectangular Arrays Rectangular Arrays
        1. Array-Access Expression for a Two-Dimensional Rectangular Array
        2. Array Initializer for a Two-Dimensional Rectangular Array
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.9.2</span> Jagged Arrays Jagged Arrays
        1. Array Initializer for a Two-Dimensional Jagged Array
        2. Diagram of a Two-Dimensional Jagged Array in Memory
        3. Creating Two-Dimensional Arrays with Array-Creation Expressions
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.9.3</span> Two-Dimensional Array Example: Displaying Element Values Two-Dimensional Array Example: Displaying Element Values
        1. Overloaded Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030740">OutputArray</code>
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030746">OutputArray</code> for Rectangular Arrays for Rectangular Arrays
        3. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030755">OutputArray</code> for Jagged Arrays for Jagged Arrays
        4. Common Multidimensional-Array Manipulations Performed with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030760">for</code> Statements Statements
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.10</span> Case Study: GradeBook Using a Rectangular Array Case Study: GradeBook Using a Rectangular Array
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.11</span> Variable-Length Argument Lists Variable-Length Argument Lists
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.12</span> Using Command-Line Arguments Using Command-Line Arguments
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.13</span> (Optional) Passing Arrays by Value and by Reference (Optional) Passing Arrays by Value and by Reference
    16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.14</span> Wrap-Up Wrap-Up
    17. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.1</span> Introduction Introduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.2</span> Arrays Arrays
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.3</span> Declaring and Creating Arrays Declaring and Creating Arrays
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.2</span> Using an Array Initializer Using an Array Initializer
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.3</span> Calculating a Value to Store in Each Array Element Calculating a Value to Store in Each Array Element
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.5</span> Iterating Through Arrays with Iterating Through Arrays with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P70010128530000000000000000308E3">foreach</code>
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.4.6</span> Using Bar Charts to Display Array Data Graphically; Introducing Type Inference with Using Bar Charts to Display Array Data Graphically; Introducing Type Inference with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P70010128530000000000000000308F4">var</code>
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.2</span> Exception Handling: Processing the Incorrect Response Exception Handling: Processing the Incorrect Response
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.3</span> The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030907">try</code> Statement Statement
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.4</span> Executing the Executing the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030919">catch</code> Block Block
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.5.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030923">Message</code> Property of the Exception Parameter Property of the Exception Parameter
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.6.1</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030929">Card</code> and Getter-Only Auto-Implemented Properties and Getter-Only Auto-Implemented Properties
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.7</span> Passing Arrays and Array Elements to Methods Passing Arrays and Array Elements to Methods
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.9</span> Multidimensional Arrays Multidimensional Arrays
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.10</span> Case Study: Case Study: <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M08_PAUL1540_06_SE_C08.xhtml#P7001012853000000000000000030961">GradeBook</code> Using a Rectangular Array Using a Rectangular Array
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.11</span> Variable-Length Argument Lists Variable-Length Argument Lists
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.12</span> Using Command-Line Arguments Using Command-Line Arguments
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">8.13</span> (Optional) Passing Arrays by Value and by Reference (Optional) Passing Arrays by Value and by Reference
    18. Terminology
    19. Self-Review Exercises
    20. Exercises
    21. Special Section: Building Your Own Computer
    22. Making-a-Difference Exercise
  18. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9 </span>Introduction to LINQ and the Introduction to LINQ and the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030D7E">List</code> Collection Collection
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2 </span>Querying an Array of Querying an Array of <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030E22">int</code> Values Using LINQ Values Using LINQ
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.1 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030E30">from</code> Clause Clause
        1. Implicitly Typed Local Variables
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.2 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030E44">where</code> Clause Clause
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.3 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030E4D">select</code> Clause Clause
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.4 </span>Iterating Through the Results of the LINQ QueryIterating Through the Results of the LINQ Query
        1. LINQ vs. Iteration Statements
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.5 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030E65">orderby</code> Clause Clause
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.6 </span>Interface Interface <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030E72">IEnumerable&lt;T&gt;</code>
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3 </span>Querying an Array of Querying an Array of <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030E86">Employee</code> Objects Using LINQ Objects Using LINQ
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.1 </span>Accessing the Properties of a LINQ Query&#8217;s Range VariableAccessing the Properties of a LINQ Query’s Range Variable
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.2 </span>Sorting a LINQ Query&#8217;s Results by Multiple PropertiesSorting a LINQ Query’s Results by Multiple Properties
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030EB1">Any</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030EB2">First</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030EB3">Count</code> Extension Methods Extension Methods
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.4 </span>Selecting a Property of an ObjectSelecting a Property of an Object
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.5 </span>Creating New Types in the Creating New Types in the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030ECE">select</code> Clause of a LINQ Query Clause of a LINQ Query
        1. Projections
        2. Changing the Names of Properties in Anonymous Types
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.4 </span>Introduction to CollectionsIntroduction to Collections
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.4.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030EF4">List&lt;T&gt;</code> Collection Collection
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.4.2 </span>Dynamically Resizing a Dynamically Resizing a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030F44">List&lt;T&gt;</code> Collection Collection
        1. Adding and Inserting Elements
        2. Count and Capacity
        3. Iterating Through a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030F88">List&#8217;</code>s Contentss Contents
        4. Adding More Elements and Growing the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030F91">List</code>
        5. Removing Elements
        6. Determining Whether an Element Is in the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030FA6">List</code>
        7. Adding More Elements and Growing the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030FB2">List</code>
        8. Doubling the Capacity
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5 </span>Querying the Generic Querying the Generic <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030FE0">List</code> Collection Using LINQ Collection Using LINQ
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.1 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000030FEF">let</code> Clause Clause
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.2 </span>Deferred ExecutionDeferred Execution
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.3 </span>Extension Methods Extension Methods <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P700101285300000000000000003100F">ToArray</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000031010">ToList</code>
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.4 </span>Collection InitializersCollection Initializers
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.6 </span>Wrap-UpWrap-Up
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.7 </span>Deitel LINQ Resource CenterDeitel LINQ Resource Center
    10. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2 </span>Querying an Array of Querying an Array of <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000031055">int</code> Values Using LINQ Values Using LINQ
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.1 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P700101285300000000000000003105D">from</code> Clause Clause
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.2 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000031063">where</code> Clause Clause
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.3 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P700101285300000000000000003106A">select</code> Clause Clause
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.4 </span>Iterating Through the Results of the LINQ QueryIterating Through the Results of the LINQ Query
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.5 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000031076">orderby</code> Clause Clause
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.2.6 </span>Interface Interface <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P700101285300000000000000003107D">IEnumerable&lt;T&gt;</code>
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3 </span>Querying an Array of Querying an Array of <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P700101285300000000000000003108D">Employee</code> Objects Using LINQ Objects Using LINQ
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.2 </span>Sorting a LINQ Query&#8217;s Results by Multiple PropertiesSorting a LINQ Query’s Results by Multiple Properties
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000031097">Any</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000031098">First</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P7001012853000000000000000031099">Count</code> Extension Methods Extension Methods
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.4 </span>Selecting a Property of an ObjectSelecting a Property of an Object
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.3.5 </span>Creating New Types in the Creating New Types in the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P70010128530000000000000000310AD">select</code> Clause of a LINQ Query Clause of a LINQ Query
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.4 </span>Introduction to CollectionsIntroduction to Collections
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.4.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P70010128530000000000000000310B8">List&lt;T&gt;</code> Collection Collection
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5 </span>Querying the Generic Querying the Generic <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P70010128530000000000000000310DD">List</code> Collection Using LINQ Collection Using LINQ
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.1 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P70010128530000000000000000310E3">let</code> Clause Clause
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.2 </span>Deferred ExecutionDeferred Execution
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.3 </span>Extension Methods Extension Methods <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P70010128530000000000000000310F3">ToArray</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M09_PAUL1540_06_SE_C09.xhtml#P70010128530000000000000000310F4">ToList</code>
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">9.5.4 </span>Collection InitializersCollection Initializers
    11. Terminology
    12. Self-Review Exercises
    13. Exercises
  19. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10</span> Classes and Objects: A Deeper Look Classes and Objects: A Deeper Look
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000312A9">Time</code> Class Case Study; Throwing Exceptions Class Case Study; Throwing Exceptions
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.2.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000312B2">Time1</code> Class Declaration Class Declaration
        1. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000312CB">public</code> Class Class
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000312D2">SetTime</code> and Throwing Exceptions and Throwing Exceptions
        3. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000312EB">ToUniversalString</code>
        4. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000312F6">ToString</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.2.2</span> Using Class Using Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P700101285300000000000000003130D">Time1</code>
      3. Calling <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031326">Time</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031327">SetTime</code> with Invalid Values with Invalid Values
      4. Notes on the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031335">Time1</code> Class Declaration Class Declaration
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.3</span> Controlling Access to Members Controlling Access to Members
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.4</span> Referring to the Current Object&#8217;s Members with the Referring to the Current Object’s Members with the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031370">this</code> Reference Reference
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000313A9">Time</code> Class Case Study: Overloaded Constructors Class Case Study: Overloaded Constructors
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.5.1</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000313AC">Time2</code> with Overloaded Constructors with Overloaded Constructors
        1. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000313C8">Time2</code>&#8217;s Three-Argument Constructor’s Three-Argument Constructor
        2. Constructor Initializers
        3. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000313FB">SetTime</code> Method and the Method and the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000313FC">Hour</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000313FD">Minute</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000313FE">Second</code> Properties Properties
        4. Notes Regarding Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031428">Time2</code>&#8217;s Methods, Properties and Constructors’s Methods, Properties and Constructors
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.5.2</span> Using Class Using Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P700101285300000000000000003144D">Time2</code>&#8217;s Overloaded Constructors’s Overloaded Constructors
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.6</span> Default and Parameterless Constructors Default and Parameterless Constructors
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.7</span> Composition Composition
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.7.1</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P700101285300000000000000003148B">Date</code>
        1. Constructor
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000314C1">private set</code> Accessors Accessors
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.7.2</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000314D8">Employee</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.7.3</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000314F6">EmployeeTest</code>
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.8</span> Garbage Collection and Destructors Garbage Collection and Destructors
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031515">static</code> Class Members Class Members
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.10 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000315A9">readonly</code> Instance Variables Instance Variables
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.11 </span><b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Class View</b> and and <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Object Browser</b>
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.11.1</span> Using the Using the <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Class View</b> Window Window
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.11.2</span> Using the Using the <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Object Browser</b>
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.12</span> Object Initializers Object Initializers
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.13</span> Operator Overloading; Introducing Operator Overloading; Introducing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P700101285300000000000000003163A">struct</code>
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.13.1</span> Creating Value Types with Creating Value Types with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031642">struct</code>
        1. When to Declare a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031658">struct</code> Type Type
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.13.2</span> Value Type Value Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031666">ComplexNumber</code>
        1. Constructor
        2. Overloaded Operators
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.13.3</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000316A1">ComplexTest</code>
    16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.14 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000316CA">Time</code> Class Case Study: Extension Methods Class Case Study: Extension Methods
    17. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.15</span> Wrap-Up Wrap-Up
    18. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.2.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P700101285300000000000000003173C">Time1</code> Class Declaration Class Declaration
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.2.2</span> Using Class Using Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031747">Time1</code>
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.3</span> Controlling Access to Members Controlling Access to Members
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.4</span> Referring to the Current Object&#8217;s Members with the Referring to the Current Object’s Members with the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P700101285300000000000000003175A">this</code> Reference Reference
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031768">Time</code> Class Case Study: Overloaded Constructors Class Case Study: Overloaded Constructors
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.5.1</span> Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P700101285300000000000000003176D">Time2</code> with Overloaded Constructors with Overloaded Constructors
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.6</span> Default and Parameterless Constructors Default and Parameterless Constructors
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.7</span> Composition Composition
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.8</span> Garbage Collection and Destructors Garbage Collection and Destructors
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P7001012853000000000000000031794">static</code> Class Members Class Members
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.10 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000317AB">readonly</code> Instance Variables Instance Variables
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.11.1</span> Using the Using the <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Class View</b> Window Window
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.11.2</span> Using the Using the <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Object Browser</b>
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.12</span> Object Initializers Object Initializers
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.13</span> Operator Overloading; Introducing Operator Overloading; Introducing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000317D5">struct</code>
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.13.1</span> Creating Value Types with Creating Value Types with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000317DA">struct</code>
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.13.2</span> Value Type Value Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000317E8">ComplexNumber</code>
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">10.14 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M10_PAUL1540_06_SE_C10.xhtml#P70010128530000000000000000317F1">Time</code> Class Case Study: Extension Methods Class Case Study: Extension Methods
    19. Terminology
    20. Self-Review Exercises
    21. Exercises
  20. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11 </span>Object-Oriented Programming: InheritanceObject-Oriented Programming: Inheritance
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.1 </span>IntroductionIntroduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.2 </span>Base Classes and Derived ClassesBase Classes and Derived Classes
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031A4C">protected</code> Members Members
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4 </span>Relationship between Base Classes and Derived ClassesRelationship between Base Classes and Derived Classes
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.1 </span>Creating and Using a Creating and Using a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031AA3">CommissionEmployee</code> Class Class
        1. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031ABF">CommissionEmployee</code> Class Overview Class Overview
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031AE1">CommissionEmployee</code> Constructor Constructor
        3. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031AF2">CommissionEmployee</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031AF3">Earnings</code>
        4. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031AFD">CommissionEmployee</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031AFE">ToString</code>
        5. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031B35">CommissionEmployeeTest</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.2 </span>Creating a Creating a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031B51">BasePlusCommissionEmployee</code> Class without Using Inheritance Class without Using Inheritance
        1. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031B99">BasePlusCommissionEmployeeTest</code>
        2. Code Duplication
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.3 </span>Creating a Creating a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031BE2">CommissionEmployee</code>&#8211;–<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031BE3">BasePlusCommissionEmployee</code> Inheritance Hierarchy Inheritance Hierarchy
        1. A Derived Class’s Constructor Must Call Its Base Class’s Constructor
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C19">BasePlusCommissionEmployee</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C1A">Earnings</code>
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C40">CommissionEmployee</code>&#8211;–<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C41">BasePlusCommissionEmployee</code> Inheritance Hierarchy Using Inheritance Hierarchy Using <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C42">protected</code> Instance Variables Instance Variables
        1. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C56">BasePlusCommissionEmployee</code>
        2. Testing Class BasePlusCommissionEmployee
        3. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C83">public</code> vs. vs. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C84">protected</code> Data Data
        4. Problems with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031C8E">protected</code> Instance Variables Instance Variables
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CAB">CommissionEmployee</code>&#8211;–<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CAC">BasePlusCommissionEmployee</code> Inheritance Hierarchy Using private Instance Variables Inheritance Hierarchy Using private Instance Variables
        1. Base Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CAF">CommissionEmployee</code>
        2. Derived Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CCA">BasePlusCommissionEmployee</code>
        3. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CE0">BasePlusCommissionEmployee</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CE1">Earnings</code>
        4. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CF7">BasePlusCommissionEmployee</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031CF8">ToString</code>
        5. Testing Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031D07">BasePlusCommissionEmployee</code>
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.5 </span>Constructors in Derived ClassesConstructors in Derived Classes
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.6 </span>Software Engineering with InheritanceSoftware Engineering with Inheritance
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.7 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031D2F">object</code>
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.8 </span>Wrap-UpWrap-Up
    11. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.1</span> Introduction Introduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.2</span> Base Classes and Derived Classes Base Classes and Derived Classes
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031D87">protected</code> Members Members
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.1 </span>Creating and Using a Creating and Using a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031D95">CommissionEmployee</code> Class Class
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.2 </span>Creating a Creating a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031DAB">BasePlusCommissionEmployee</code> Class without Using Inheritance Class without Using Inheritance
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.3 </span>Creating a Creating a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031DB0">CommissionEmployee&#8211;BasePlusCommissionEmployee</code> Inheritance Hierarchy Inheritance Hierarchy
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.4</span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031DC0">CommissionEmployee&#8211;BasePlusCommissionEmployee</code> Inheritance Hierarchy Using Inheritance Hierarchy Using <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031DC1">protected</code> Instance Variables Instance Variables
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.4.5</span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031DCE">CommissionEmployee&#8211;BasePlusCommissionEmployee</code> Inheritance Hierarchy Using Inheritance Hierarchy Using <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031DCF">private</code> Instance Variables Instance Variables
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.5</span> Constructors in Derived Classes Constructors in Derived Classes
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.6</span> Software Engineering with Inheritance Software Engineering with Inheritance
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">11.7 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M11_PAUL1540_06_SE_C11.xhtml#P7001012853000000000000000031DE3">object</code>
    12. Terminology
    13. Self-Review Exercises
    14. Exercises
  21. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12 </span>OOP: Polymorphism and InterfacesOOP: Polymorphism and Interfaces
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.2 </span>Polymorphism ExamplesPolymorphism Examples
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.3 </span>Demonstrating Polymorphic BehaviorDemonstrating Polymorphic Behavior
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.4 </span>Abstract Classes and MethodsAbstract Classes and Methods
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5 </span>Case Study: Payroll System Using PolymorphismCase Study: Payroll System Using Polymorphism
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5.1 </span>Creating Abstract Base Class Creating Abstract Base Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M12_PAUL1540_06_SE_C12.xhtml#P7001012853000000000000000032094">Employee</code>
        1. Class <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Employee</b>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5.2 </span>Creating Concrete Derived Class Creating Concrete Derived Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M12_PAUL1540_06_SE_C12.xhtml#P70010128530000000000000000320DB">SalariedEmployee</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5.3 </span>Creating Concrete Derived Class Creating Concrete Derived Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M12_PAUL1540_06_SE_C12.xhtml#P7001012853000000000000000032116">HourlyEmployee</code>
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5.4 </span>Creating Concrete Derived Class Creating Concrete Derived Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M12_PAUL1540_06_SE_C12.xhtml#P700101285300000000000000003213A">CommissionEmployee</code>
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5.5 </span>Creating Indirect Concrete Derived Class Creating Indirect Concrete Derived Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M12_PAUL1540_06_SE_C12.xhtml#P7001012853000000000000000032156">BasePlusCommissionEmployee</code>
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5.6 </span>Polymorphic Processing, Operator Polymorphic Processing, Operator <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M12_PAUL1540_06_SE_C12.xhtml#P7001012853000000000000000032180">is</code> and Downcasting and Downcasting
        1. Assigning Derived-Class Objects to Base-Class References
        2. Polymorphic Processing of <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Employees</b>
        3. Giving <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">BasePlusCommissionEmployee</b>s 10% Raisess 10% Raises
        4. Every Object Knows Its Own Type
        5. Avoiding Compilation Errors with Downcasting
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5.7 </span>Summary of the Allowed Assignments Between Base-Class and Derived-Class VariablesSummary of the Allowed Assignments Between Base-Class and Derived-Class Variables
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.6 </span>sealed Methods and Classessealed Methods and Classes
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7 </span>Case Study: Creating and Using InterfacesCase Study: Creating and Using Interfaces
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7.1 </span>Developing an IPayable HierarchyDeveloping an IPayable Hierarchy
        1. UML Diagram Containing an Interface
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7.2 </span>Declaring Interface IPayableDeclaring Interface IPayable
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7.3 </span>Creating Class InvoiceCreating Class Invoice
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7.4 </span>Modifying Class Employee to Implement Interface IPayableModifying Class Employee to Implement Interface IPayable
        1. Derived Classes of <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Employee</b> and Interface and Interface <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">IPayable</b>
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7.5 </span>Using Interface IPayable to Process Invoices and Employees PolymorphicallyUsing Interface IPayable to Process Invoices and Employees Polymorphically
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7.6 </span>Common Interfaces of the .NET Framework Class LibraryCommon Interfaces of the .NET Framework Class Library
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.8 </span>Wrap-UpWrap-Up
    11. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.2 </span>Polymorphism ExamplesPolymorphism Examples
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.3 </span>Demonstrating Polymorphic BehaviorDemonstrating Polymorphic Behavior
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.4 </span>Abstract Classes and MethodsAbstract Classes and Methods
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.5 </span>Case Study: Payroll System Using PolymorphismCase Study: Payroll System Using Polymorphism
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M12_PAUL1540_06_SE_C12.xhtml#P70010128530000000000000000323E8">sealed</code> Methods and Classes Methods and Classes
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">12.7 </span>Case Study: Creating and Using InterfacesCase Study: Creating and Using Interfaces
    12. Terminology
    13. Self-Review Exercises
    14. Exercises
    15. Making-a-Difference Exercise
  22. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13 </span>Exception Handling: A Deeper LookException Handling: A Deeper Look
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.2 </span>Example: Divide by Zero without Exception HandlingExample: Divide by Zero without Exception Handling
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.2.1 </span>Dividing By ZeroDividing By Zero
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.2.2 </span>Enter a Non-Numeric DenominatorEnter a Non-Numeric Denominator
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.2.3 </span>Unhandled Exceptions Terminate the AppUnhandled Exceptions Terminate the App
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3</span> Example: Handling Example: Handling <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000325F0">DivideByZeroException</code>s and s and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000325F1">FormatException</code>ss
      1. Sample Outputs
      2. Another Way to Convert Strings to Integers
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.1 </span>Enclosing Code in a Enclosing Code in a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032628">try</code> Block Block
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.2 </span>Catching ExceptionsCatching Exceptions
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.3 </span>Uncaught ExceptionsUncaught Exceptions
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.4 </span>Termination Model of Exception HandlingTermination Model of Exception Handling
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.5 </span>Flow of Control When Exceptions OccurFlow of Control When Exceptions Occur
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.4 </span>.NET .NET <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000326C1">Exception</code> Hierarchy Hierarchy
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.4.1 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000326C9"><span class="number" style="color:#24b5a1"><b>SystemException</b></span></code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.4.2 </span>Which Exceptions Might a Method Throw?Which Exceptions Might a Method Throw?
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032704">finally</code> Block Block
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5.1 </span>Moving Resource-Release Code to a Moving Resource-Release Code to a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003270D">finally</code> Block Block
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5.2 </span>Demonstrating the Demonstrating the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032755">finally</code> Block Block
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5.3 </span>Throwing Exceptions Using the Throwing Exceptions Using the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032774">throw</code> Statement Statement
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5.4 </span>Rethrowing ExceptionsRethrowing Exceptions
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5.5 </span>Returning After a Returning After a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000327D4">finally</code> Block Block
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.6 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032806">using</code> Statement Statement
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032828">Exception</code> Properties Properties
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7.1 </span>Property Property <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032836">InnerException</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7.2 </span>Other Other <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032852">Exception</code> Properties Properties
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7.3 </span>Demonstrating Demonstrating <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032864">Exception</code> Properties and Stack Unwinding Properties and Stack Unwinding
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7.4 </span>Throwing an Throwing an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003288F">Exception</code> with an with an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032890">InnerException</code>
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7.5 </span>Displaying Information About the Displaying Information About the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000328B9">Exception</code>
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.8</span> User-Defined Exception Classes User-Defined Exception Classes
      1. Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000328EA">NegativeNumberException</code>
      2. Using Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003290B">NegativeNumberException</code>
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9 </span>Checking for Checking for <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003292C">null</code> References; Introducing C# 6&#8217;s References; Introducing C# 6’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003292D">?.</code> Operator Operator
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9.1 </span>Null-Conditional Operator (Null-Conditional Operator (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003293D">?.</code>))
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9.2 </span>Revisiting Operators Revisiting Operators <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003294A">is</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P700101285300000000000000003294B">as</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9.3 </span>Nullable TypesNullable Types
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9.4 </span>Null Coalescing Operator (Null Coalescing Operator (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032998">??</code>))
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.10</span> Exception Filters and the C# 6 Exception Filters and the C# 6 <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P70010128530000000000000000329AF">when</code> Clause Clause
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.11</span> Wrap-Up Wrap-Up
    14. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.2 </span>Example: Divide by Zero without Exception HandlingExample: Divide by Zero without Exception Handling
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.2.1 </span>Dividing By ZeroDividing By Zero
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.2.2 </span>Enter a Non-Numeric DenominatorEnter a Non-Numeric Denominator
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.1 </span>Enclosing Code in a Enclosing Code in a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A0C">try</code> Block Block
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.2 </span>Catching ExceptionsCatching Exceptions
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.3 </span>Uncaught ExceptionsUncaught Exceptions
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.4 </span>Termination Model of Exception HandlingTermination Model of Exception Handling
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.3.5 </span>Flow of Control When Exceptions OccurFlow of Control When Exceptions Occur
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.4 </span>.NET .NET <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A43">Exception</code> Hierarchy Hierarchy
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.4.1 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A4D">SystemException</code>
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A5C">finally</code> Block Block
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.5.1 </span>Moving Resource-Release Code to a Moving Resource-Release Code to a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A63">finally</code> Block Block
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.6 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A84">using</code> Statement Statement
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A8D">Exception</code> Properties Properties
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7.1 </span>Property Property <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032A9A">InnerException</code>
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.7.3 </span>Demonstrating Demonstrating <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032AA1">Exception</code> Properties and Stack Unwinding Properties and Stack Unwinding
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.8 </span>User-Defined Exception ClassesUser-Defined Exception Classes
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9.1 </span>Null-Conditional Operator (Null-Conditional Operator (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032AB3">?.</code>))
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9.3 </span>Nullable TypesNullable Types
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.9.4 </span>Null Coalescing Operator (Null Coalescing Operator (<code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032ACE">??</code>))
      22. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">13.10 </span>Exception Filters and the C# 6 Exception Filters and the C# 6 <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M13_PAUL1540_06_SE_C13.xhtml#P7001012853000000000000000032AD6">when</code> Clause Clause
    15. Terminology
    16. Self-Review Exercises
    17. Exercises
  23. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14 </span>Graphical User Interfaces with Windows Forms: Part 1Graphical User Interfaces with Windows Forms: Part 1
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.2 </span>Windows FormsWindows Forms
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3 </span>Event HandlingEvent Handling
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.1 </span>A Simple Event-Driven GUIA Simple Event-Driven GUI
        1. Renaming the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032CE8">Form1.cs</code> File File
        2. Adding a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032CFF">Button</code> to the to the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032D00">Form</code>
        3. Adding an Event Handler for the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032D0C">Button</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032D0D">Click</code> Event Event
        4. Event Handler Parameters
        5. Displaying a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032D25">MessageBox</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.2 </span>Auto-Generated GUI CodeAuto-Generated GUI Code
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.3 </span>Delegates and the Event-Handling MechanismDelegates and the Event-Handling Mechanism
        1. Delegates
        2. Indicating the Method that a Delegate Should Call
        3. (Optional) Multicast Delegates
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.4 </span>Another Way to Create Event HandlersAnother Way to Create Event Handlers
        1. Using the <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Properties</b> Window to Create Event Handlers Window to Create Event Handlers
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.5 </span>Locating Event InformationLocating Event Information
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.4 </span>Control Properties and LayoutControl Properties and Layout
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.4.1 </span>Anchoring and DockingAnchoring and Docking
        1. Anchoring Demonstration
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.4.2 </span>Using Visual Studio To Edit a GUI&#8217;s LayoutUsing Visual Studio To Edit a GUI’s Layout
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032E69">Label</code>s, s, <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032E6A">TextBox</code>es and es and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032E6B">Button</code>ss
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032F25">GroupBox</code>es and es and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032F26">Panel</code>ss
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032FBA">CheckBox</code>es and es and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032FBB">RadioButton</code>ss
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.7.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000032FC4">CheckBox</code>eses
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.7.2 </span>Combining Font Styles with Bitwise OperatorsCombining Font Styles with Bitwise Operators
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.7.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P700101285300000000000000003306E">RadioButton</code>ss
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000330FD">PictureBox</code>eses
      1. Using Resources Programmatically
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000033167">ToolTip</code>ss
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.10 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000331A2">NumericUpDown</code> Control Control
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.11 </span>Mouse-Event HandlingMouse-Event Handling
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.12 </span>Keyboard-Event HandlingKeyboard-Event Handling
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.13 </span>Wrap-UpWrap-Up
    16. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.2 </span>Windows FormsWindows Forms
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3 </span>Event HandlingEvent Handling
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.1 </span>A Simple Event-Driven GUIA Simple Event-Driven GUI
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.2 </span>Auto-Generated GUI CodeAuto-Generated GUI Code
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.3 </span>Delegates and the Event-Handling MechanismDelegates and the Event-Handling Mechanism
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.4 </span>Another Way to Create Event HandlersAnother Way to Create Event Handlers
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.3.5 </span>Locating Event InformationLocating Event Information
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.4 </span>Control Properties and LayoutControl Properties and Layout
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000333BC">Label</code>s, s, <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000333BD">TextBox</code>es and es and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000333BE">Button</code>ss
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000333D6">GroupBox</code>es and es and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000333D7">Panel</code>ss
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000333F7">CheckBox</code>es and es and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P70010128530000000000000000333F8">RadioButton</code>ss
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000033420">PictureBox</code>eses
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000033445">ToolTip</code>ss
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.10 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M14_PAUL1540_06_SE_C14.xhtml#P7001012853000000000000000033454">NumericUpDown</code> Control Control
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.11 </span>Mouse-Event HandlingMouse-Event Handling
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">14.12 </span>Keyboard-Event HandlingKeyboard-Event Handling
    17. Terminology
    18. Self-Review Exercises
    19. Exercises
    20. Making-a-Difference Exercises
  24. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15</span> Graphical User Interfaces with Windows Forms: Part 2 Graphical User Interfaces with Windows Forms: Part 2
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.1</span> Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.2</span> Menus Menus
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P70010128530000000000000000337CD">MonthCalendar</code> Control Control
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033802">DateTimePicker</code> Control Control
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P700101285300000000000000003386D">LinkLabel</code> Control Control
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P70010128530000000000000000338EB">ListBox</code> Control Control
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P70010128530000000000000000339AB">CheckedListBox</code> Control Control
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033A2A">ComboBox</code> Control Control
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033AD1">TreeView</code> Control Control
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.10 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033BA1">ListView</code> Control Control
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.11 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033C74">TabControl</code> Control Control
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.12</span> Multiple Document Interface (MDI) Windows Multiple Document Interface (MDI) Windows
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.13</span> Visual Inheritance Visual Inheritance
    16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.14</span> User-Defined Controls User-Defined Controls
    17. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.15</span> Wrap-Up Wrap-Up
    18. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.2 </span>MenusMenus
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033F37">MonthCalendar</code> Control Control
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033F43">DateTimePicker</code> Control Control
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033F51">LinkLabel</code> Control Control
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033F60">ListBox</code> Control Control
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.7 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033F7E">CheckedListBox</code> Control Control
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033F91">ComboBox</code> Control Control
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.9 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033FB1">TreeView</code> Control Control
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.10 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033FDC">ListView</code> Control Control
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.11 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M15_PAUL1540_06_SE_C15.xhtml#P7001012853000000000000000033FF9">TabControl</code> Control Control
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.12 </span>Multiple Document Interface (MDI) WindowsMultiple Document Interface (MDI) Windows
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.13 </span>Visual InheritanceVisual Inheritance
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">15.14 </span>User-Defined ControlsUser-Defined Controls
    19. Terminology
    20. Self-Review Exercises
    21. Exercises
  25. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16 </span>Strings and Characters: A Deeper LookStrings and Characters: A Deeper Look
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.2 </span>Fundamentals of Characters and StringsFundamentals of Characters and Strings
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000343BA">string</code> Constructors Constructors
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000343F0">string</code> Indexer, Length Property and CopyTo Method Indexer, Length Property and CopyTo Method
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.5 </span>Comparing Comparing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034436">string</code>ss
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.6 </span>Locating Characters and Substrings in Locating Characters and Substrings in <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000344B9">string</code>ss
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.7 </span>Extracting Substrings from Extracting Substrings from <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000344EE">string</code>ss
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.8 </span>Concatenating Concatenating <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003450A">string</code>ss
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.9 </span>Miscellaneous Miscellaneous <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034521">string</code> Methods Methods
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.10 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003455B">StringBuilder</code>
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.11 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034597">Length</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034598">Capacity</code> Properties, Properties, <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034599">EnsureCapacity</code> Method and Indexer of Class Method and Indexer of Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003459A">StringBuilder</code>
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.12 </span>Append and Append and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000345C9">AppendFormat</code> Methods of Class Methods of Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000345CA">StringBuilder</code>
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.13 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034612">Insert</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034613">Remove</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034614">Replace</code> Methods of Class Methods of Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034615">StringBuilder</code>
    16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.14 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034658">Char</code> Methods Methods
    17. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.15 </span>Introduction to Regular Expressions (Online)Introduction to Regular Expressions (Online)
    18. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.16 </span>Wrap-UpWrap-Up
    19. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.2 </span>Fundamentals of Characters and StringsFundamentals of Characters and Strings
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000346DD">string</code> Constructors Constructors
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000346E3">string</code> Indexer, Indexer, <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000346E4">Length</code> Property and Property and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000346E5">CopyTo</code> Method Method
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.5 </span>Comparing Comparing <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P70010128530000000000000000346FA">string</code>ss
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.6 </span>Locating Characters and Substrings in Locating Characters and Substrings in <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034716">string</code>ss
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.7 </span>Extracting Substrings from Extracting Substrings from <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034720">string</code>ss
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.8 </span>Concatenating Concatenating <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034729">string</code>ss
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.10 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034734">StringBuilder</code>
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.11 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003473D">Length</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003473E">Capacity</code> Properties, Properties, <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003473F">EnsureCapacity</code> Method and Indexer of Class Method and Indexer of Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034740">StringBuilder</code>
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.12 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003474F">Append</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034750">AppendFormat</code> Methods of Class Methods of Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034751">StringBuilder</code>
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.13 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003475A">Insert</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003475B">Remove</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003475C">Replace</code> Methods of Class Methods of Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P700101285300000000000000003475D">StringBuilder</code>
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">16.14 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M16_PAUL1540_06_SE_C16.xhtml#P7001012853000000000000000034771">Char</code> Methods Methods
    20. Terminology
    21. Self-Review Exercises
    22. Exercises
    23. Making-a-Difference Exercises
  26. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17 </span>Files and StreamsFiles and Streams
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.2 </span>Files and StreamsFiles and Streams
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.3 </span>Creating a Sequential-Access Text FileCreating a Sequential-Access Text File
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.4 </span>Reading Data from a Sequential-Access Text FileReading Data from a Sequential-Access Text File
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.5 </span>Case Study: Credit-Inquiry ProgramCase Study: Credit-Inquiry Program
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.6 </span>SerializationSerialization
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.7 </span>Creating a Sequential-Access File Using Object SerializationCreating a Sequential-Access File Using Object Serialization
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.8 </span>Reading and Deserializing Data from a Binary FileReading and Deserializing Data from a Binary File
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.9 </span>Classes Classes <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034B71">File</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034B72">Directory</code>
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.9.1 </span>Demonstrating Classes Demonstrating Classes <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034BEC">File</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034BED">Directory</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.9.2 </span>Searching Directories with LINQSearching Directories with LINQ
        1. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034C33">SearchDirectory</code>
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034C56">CleanDirectory</code>
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.10 </span>Wrap-Up Wrap-Up
    13. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.2 </span>Files and StreamsFiles and Streams
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.3 </span>Creating a Sequential-Access Text FileCreating a Sequential-Access Text File
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.4 </span>Reading Data from a Sequential-Access Text FileReading Data from a Sequential-Access Text File
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.5 </span>Case Study: Credit-Inquiry ProgramCase Study: Credit-Inquiry Program
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.6 </span>SerializationSerialization
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.7 </span>Creating a Sequential-Access File Using Object SerializationCreating a Sequential-Access File Using Object Serialization
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.8 </span>Reading and Deserializing Data from a Binary FileReading and Deserializing Data from a Binary File
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">17.9 </span>Classes Classes <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034CE6">File</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M17_PAUL1540_06_SE_C17.xhtml#P7001012853000000000000000034CE7">Directory</code>
    14. Terminology
    15. Self-Review Exercises
    16. Exercises
    17. Making-a-Difference Exercises
  27. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18 </span>Searching and SortingSearching and Sorting
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.2 </span>Searching AlgorithmsSearching Algorithms
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.2.1 </span>Linear SearchLinear Search
        1. Performing a Linear Search
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M18_PAUL1540_06_SE_C18.xhtml#P7001012853000000000000000034F97"><span class="number" style="color:#52002b">LinearSearch</span></code>
        3. Efficiency of Linear Search
        4. Constant Runtime
        5. Linear Runtime
        6. Quadratic Runtime
        7. Linear Search Runtime
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.2.2 </span>Binary SearchBinary Search
        1. Implementing Binary Search
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M18_PAUL1540_06_SE_C18.xhtml#P7001012853000000000000000034FFA"><span class="number" style="color:#52002b">BinarySearch</span></code>
        3. Efficiency of Binary Search
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.3 </span>Sorting AlgorithmsSorting Algorithms
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.3.1 </span>Selection SortSelection Sort
        1. Implementing Selection Sort
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M18_PAUL1540_06_SE_C18.xhtml#P7001012853000000000000000035048"><span class="number" style="color:#52002b">SelectionSort</span></code>
        3. Efficiency of Selection Sort
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.3.2 </span>Insertion SortInsertion Sort
        1. Implementing Insertion Sort
        2. Efficiency of Insertion Sort
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.3.3 </span>Merge SortMerge Sort
        1. Implementing Merge Sort
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M18_PAUL1540_06_SE_C18.xhtml#P70010128530000000000000000350AC"><span class="number" style="color:#52002b">SortArray</span></code>
        3. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M18_PAUL1540_06_SE_C18.xhtml#P70010128530000000000000000350BD"><span class="number" style="color:#52002b">Merge</span></code>
        4. Efficiency of Merge Sort
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.4 </span>Summary of the Efficiency of Searching and Sorting AlgorithmsSummary of the Efficiency of Searching and Sorting Algorithms
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.5 </span>Wrap-Up Wrap-Up
    8. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.2.1 </span>Linear SearchLinear Search
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.2.2 </span>Binary SearchBinary Search
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.3.1 </span>Selection SortSelection Sort
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.3.2 </span>Insertion SortInsertion Sort
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">18.3.3 </span>Merge SortMerge Sort
    9. Terminology
    10. Self-Review Exercises
    11. Exercises
  28. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19 </span>Custom Linked Data StructuresCustom Linked Data Structures
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.2 </span>Simple-Type Simple-Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M19_PAUL1540_06_SE_C19.xhtml#P7001012853000000000000000035234">struct</code>s, Boxing and Unboxings, Boxing and Unboxing
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.3 </span>Self-Referential ClassesSelf-Referential Classes
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.4</span> Linked Lists Linked Lists
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.5</span> Stacks Stacks
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.6</span> Queues Queues
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.7</span> Trees Trees
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.7.1</span> Binary Search Tree of Integer Values Binary Search Tree of Integer Values
        1. Inorder Traversal Algorithm
        2. Preorder Traversal Algorithm
        3. Postorder Traversal Algorithm
        4. Duplicate Elimination
        5. Overview of the Level-Order Binary-Tree Exercise
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.7.2</span> Binary Search Tree of Binary Search Tree of <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M19_PAUL1540_06_SE_C19.xhtml#P7001012853000000000000000035555">IComparable</code> Objects Objects
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.8 </span>Wrap-Up Wrap-Up
    11. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.1</span> Introduction Introduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.2</span> Simple-Type Simple-Type <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M19_PAUL1540_06_SE_C19.xhtml#P70010128530000000000000000355B9">struct</code>s, Boxing and Unboxings, Boxing and Unboxing
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.3</span> Self-Referential Classes Self-Referential Classes
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.4</span> Linked Lists Linked Lists
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.5</span> Stacks Stacks
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.6</span> Queues Queues
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">19.7</span> Trees Trees
    12. Terminology
    13. Self-Review Exercises
    14. Exercises
    15. Special Section: Building Your Own Compiler
  29. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20 </span>GenericsGenerics
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.2 </span>Motivation for Generic MethodsMotivation for Generic Methods
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.3 </span>Generic-Method ImplementationGeneric-Method Implementation
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.4 </span>Type ConstraintsType Constraints
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.4.1 </span>IComparable&lt;T&gt; InterfaceIComparable<T> Interface
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.4.2 </span>Specifying Type ConstraintsSpecifying Type Constraints
        1. Specifying the Type Constraint with a <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">where</b> Clause Clause
        2. Kinds of Type Constraints
        3. Applying Multiple Type Constraints
        4. Analyzing the Code
        5. Value Types vs. Reference Types in Generics
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.5 </span>Overloading Generic MethodsOverloading Generic Methods
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.6 </span>Generic ClassesGeneric Classes
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.7 </span>Wrap-UpWrap-Up
    10. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.2 </span>Motivation for Generic MethodsMotivation for Generic Methods
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.3 </span>Generic-Method ImplementationGeneric-Method Implementation
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.4 </span>Type ConstraintsType Constraints
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.5 </span>Overloading Generic MethodsOverloading Generic Methods
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">20.6 </span>Generic ClassesGeneric Classes
    11. Terminology
    12. Self-Review Exercises
    13. Exercises
  30. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21 </span>Generic Collections; Functional Programming with LINQ/PLINQGeneric Collections; Functional Programming with LINQ/PLINQ
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.2 </span>Collections OverviewCollections Overview
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035C9C">Array</code> and Enumerators and Enumerators
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.1 </span>C# 6 C# 6 <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035CB8">using static</code> Directive Directive
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.2 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035CD5">UsingArray</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035CD6">static</code> Fields Fields
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035CEB">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035CEC">Sort</code>
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035CF4">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035CF5">Copy</code>
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D01">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D02">BinarySearch</code>
      6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D0A">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D0B">GetEnumerator</code> and Interface and Interface <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D0C">IEnumerator</code>
      7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.7 </span>Iterating Over a Collection with Iterating Over a Collection with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D3F">foreach</code>
      8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D4F">Array</code> Methods Methods <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D50">Clear</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D51">IndexOf</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D52">LastIndexOf</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D53">Reverse</code>
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D67">Dictionary</code> Collections Collections
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.4.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D6D">Dictionary</code> Fundamentals Fundamentals
        1. Hashing
        2. Collisions
        3. Load Factor
        4. Hash Function
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.4.2 </span>Using the Using the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035D87">SortedDictionary</code> Collection Collection
        1. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035DC6">CollectWords</code>
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035DD4">SortedDictionary</code> Methods Methods <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035DD5">ContainsKey</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035DD6">Add</code>
        3. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035DE8">SortedDictionary</code> Indexer Indexer
        4. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035DF6">DisplayDictionary</code>
        5. Iterating Over a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035E06">SortedDictionary</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035E07">KeyValuePair</code>ss
        6. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035E15">SortedDictionary</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035E16">Values</code> Property Property
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.5 </span>Generic Generic <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035E1E">LinkedList</code> Collection Collection
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.6 </span>C# 6 Null Conditional Operator C# 6 Null Conditional Operator <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035EC2">?[]</code>
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.7 </span>C# 6 C# 6 <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035EF6">Dictionary</code> Initializers and Collection Initializers Initializers and Collection Initializers
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8 </span>DelegatesDelegates
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.1 </span>Declaring a Delegate TypeDeclaring a Delegate Type
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.2 </span>Declaring a Delegate VariableDeclaring a Delegate Variable
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.3 </span>Delegate ParametersDelegate Parameters
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.4 </span>Passing a Method Name Directly to a Delegate ParameterPassing a Method Name Directly to a Delegate Parameter
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9 </span>Lambda ExpressionsLambda Expressions
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.1 </span>Expression LambdasExpression Lambdas
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.2 </span>Assigning Lambdas to Delegate VariablesAssigning Lambdas to Delegate Variables
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.3 </span>Explicitly Typed Lambda ParametersExplicitly Typed Lambda Parameters
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.4 </span>Statement LambdasStatement Lambdas
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.10 </span>Introduction to Functional ProgrammingIntroduction to Functional Programming
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11 </span>Functional Programming with LINQ Method-Call Syntax and LambdasFunctional Programming with LINQ Method-Call Syntax and Lambdas
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.1 </span>LINQ Extension Methods LINQ Extension Methods <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035FFE">Min</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000035FFF">Max</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036000">Sum</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036001">Average</code>
        1. Iteration and Mutation Are Hidden from You
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003603B">Aggregate</code> Extension Method for Reduction Operations Extension Method for Reduction Operations
        1. Summing the Squares of the Values with Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036070">Aggregate</code>
        2. Calculating the Product of the Values with Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036098">Aggregate</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.3 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000360C0">Where</code> Extension Method for Filtering Operations Extension Method for Filtering Operations
        1. Sorting the Results
        2. Deferred Execution
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000360E4">Select</code> Extension Method for Mapping Operations Extension Method for Mapping Operations
    14. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.12 </span>PLINQ: Improving LINQ to Objects Performance with MulticorePLINQ: Improving LINQ to Objects Performance with Multicore
    15. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.13 </span>(Optional) Covariance and Contravariance for Generic Types(Optional) Covariance and Contravariance for Generic Types
    16. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.14 </span>Wrap-UpWrap-Up
    17. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.2 </span>Collections OverviewCollections Overview
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3 </span>Class Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000361E2">Array</code> and Enumerators and Enumerators
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.1 </span>C# 6 C# 6 <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000361E9">using static</code> Directive Directive
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000361F0">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000361F1">Sort</code>
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000361F8">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P70010128530000000000000000361F9">Copy</code>
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.5 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036200">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036201">BinarySearch</code>
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.6 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036208">Array</code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036209">GetEnumerator</code> and Interface and Interface <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003620A">IEnumerator</code>
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.7 </span>Iterating Over a Collection with Iterating Over a Collection with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003621E">foreach</code>
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.3.8 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036228">Array</code> Methods Methods <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036229">Clear</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003622A">IndexOf</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003622B">LastIndexOf</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003622C">Reverse</code>
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036242">Dictionary</code> Collections Collections
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.4.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036247">Dictionary</code> Fundamentals Fundamentals
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.4.2 </span>Using the Using the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003624C">SortedDictionary</code> Collection Collection
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.5 </span>Generic Generic <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036270">LinkedList</code> Collection Collection
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.6 </span>C# 6 Null Conditional Operator C# 6 Null Conditional Operator <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003628C">?[]</code>
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.7 </span>C# 6 C# 6 <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036297">Dictionary</code> Initializers and Collection Initializers Initializers and Collection Initializers
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8 </span>DelegatesDelegates
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.1 </span>Declaring a Delegate TypeDeclaring a Delegate Type
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.2 </span>Declaring a Delegate VariableDeclaring a Delegate Variable
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.3 </span>Delegate ParametersDelegate Parameters
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.8.4 </span>Passing a Method Name Directly to a Delegate ParameterPassing a Method Name Directly to a Delegate Parameter
      22. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9 </span>Lambda ExpressionsLambda Expressions
      23. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.1 </span>Expression LambdasExpression Lambdas
      24. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.2 </span>Assigning Lambdas to Delegate VariablesAssigning Lambdas to Delegate Variables
      25. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.3 </span>Explicitly Typed Lambda ParametersExplicitly Typed Lambda Parameters
      26. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.9.4 </span>Statement LambdasStatement Lambdas
      27. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.10 </span>Introduction to Functional ProgrammingIntroduction to Functional Programming
      28. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11 </span>Functional Programming with LINQ Method-Call Syntax and LambdasFunctional Programming with LINQ Method-Call Syntax and Lambdas
      29. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.1 </span>LINQ Extension Methods LINQ Extension Methods <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036303">Min</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036304">Max</code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036305">Sum</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036306">Average</code>
      30. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036319">Aggregate</code> Extension Method for Reduction Operations Extension Method for Reduction Operations
      31. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.3 </span>The The <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P7001012853000000000000000036328">Where</code> Extension Method for Filtering Operations Extension Method for Filtering Operations
      32. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.11.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M21_PAUL1540_06_SE_C21.xhtml#P700101285300000000000000003633B">Select</code> Extension Method for Mapping Operations Extension Method for Mapping Operations
      33. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.12 </span>PLINQ: Improving LINQ to Objects Performance with MulticorePLINQ: Improving LINQ to Objects Performance with Multicore
      34. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">21.13 </span>(Optional) Covariance and Contravariance for Generic Types(Optional) Covariance and Contravariance for Generic Types
    18. Terminology
    19. Self-Review Exercises
    20. Exercises
      1. Functional-Programming Exercises
  31. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22 </span>Databases and LINQDatabases and LINQ
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.1 </span>IntroductionIntroduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.2 </span>Relational DatabasesRelational Databases
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.3 </span>A Books DatabaseA Books Database
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.4 </span>LINQ to Entities and the ADO.NET Entity FrameworkLINQ to Entities and the ADO.NET Entity Framework
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5 </span>Querying a Database with LINQQuerying a Database with LINQ
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5.1 </span>Creating the ADO.NET Entity Data Model Class LibraryCreating the ADO.NET Entity Data Model Class Library
        1. Step 1: Creating a Class Library Project for the ADO.NET Entity Data Model
        2. Step 2: Adding the ADO.NET Entity Data Model to the Class Library
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5.2 </span>Creating a Windows Forms Project and Configuring It to Use the Entity Data ModelCreating a Windows Forms Project and Configuring It to Use the Entity Data Model
        1. Step 1: Creating the Project
        2. Step 2: Adding a Reference to the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P70010128530000000000000000368BC">BooksExamples</code> Class Library Class Library
        3. Step 3: Adding a Reference to <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P70010128530000000000000000368CA">EntityFramework</code>
        4. Step 4: Adding the Connection String to the Windows Forms App
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5.3 </span>Data Bindings Between Controls and the Entity Data ModelData Bindings Between Controls and the Entity Data Model
        1. Step 1: Adding a Data Source for the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P70010128530000000000000000368F5">Authors</code> Table Table
        2. Step 2: Creating GUI Elements
        3. Step 3: Connecting the Data Source to the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036947">authorBindingSource</code>
        4. Creating the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036954">DbContext</code> Object Object
        5. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P700101285300000000000000003695C">DisplayAuthorsTable_Load</code> Event Handler Event Handler
        6. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P700101285300000000000000003699F">authorBindingNavigatorSaveItem_Click</code> Event Handler: Saving Modifications to the Database Event Handler: Saving Modifications to the Database
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.6 </span>Dynamically Binding Query ResultsDynamically Binding Query Results
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.6.1 </span>Creating the Creating the <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">Display Query Results GUI</b>
        1. Step 1: Creating the Project
        2. Step 2: Creating a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P70010128530000000000000000369DD">DataGridView</code> to Display the to Display the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P70010128530000000000000000369DE">Titles</code> Table Table
        3. Step 3: Adding a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P70010128530000000000000000369E6">ComboBox</code> to the to the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P70010128530000000000000000369E7">Form</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.6.2 </span>Coding the Display Query Results AppCoding the Display Query Results App
        1. Customizing the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036A12">Form</code>&#8217;s ’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036A13">Load</code> Event Handler Event Handler
        2. <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036A21">queriesComboBox_SelectedIndexChanged</code> Event Handler Event Handler
        3. Ordering the Books By Title
        4. Selecting Books with 2016 Copyright
        5. Selecting Books with Titles That End in “How to Program”
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.7 </span>Retrieving Data from Multiple Tables with LINQRetrieving Data from Multiple Tables with LINQ
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.8 </span>Creating a Master/Detail View AppCreating a Master/Detail View App
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.8.1 </span>Creating the Master/Detail GUICreating the Master/Detail GUI
        1. Step <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">1</span>: Creating the Project: Creating the Project
        2. Step <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">2</span>: Adding a Data Source for the : Adding a Data Source for the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036B34">Authors</code> Table Table
        3. Step <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">3</span>: Creating GUI Elements: Creating GUI Elements
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.8.2 </span>Coding the Master/Detail AppCoding the Master/Detail App
    11. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.9 </span>Address Book Case StudyAddress Book Case Study
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.9.1</span> Creating the Address Book App&#8217;s GUI Creating the Address Book App’s GUI
        1. Step 1: Creating a Class Library Project for the Entity Data Model
        2. Step 2: Creating a Windows Forms Application Project for the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036BDF">AddressBook</code> App App
        3. Step 3: Adding the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036BEA">Address</code> Object as a Data Source Object as a Data Source
        4. Step 4: Displaying the Details of Each Row
        5. Step 5: Dragging the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036BF3">Address</code> Data-Source Node to the Data-Source Node to the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036BF4">Form</code>
        6. Step 5: Making the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036BFD">AddressID</code> <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036BFE">TextBox</code> <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036BFF">ReadOnly</code>
        7. Step 6: Adding Controls to Allow Users to Specify a Last Name to Locate
        8. Step 7: Allowing the User to Return to Browsing All Rows of the Database
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.9.2</span> Coding the Address Book App Coding the Address Book App
        1. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036C24">RefreshContacts</code>
        2. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036C3F">Contacts_Load</code>
        3. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036C4B">addressBindingNavigatorSaveItem_Click</code>
        4. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036C59">findButton_Click</code>
        5. Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M22_PAUL1540_06_SE_C22.xhtml#P7001012853000000000000000036C6F">browseAllButton_Click</code>
    12. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.10 </span>Tools and Web ResourcesTools and Web Resources
    13. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.11 </span>Wrap-UpWrap-Up
    14. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.1 </span>IntroductionIntroduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.2 </span>Relational DatabasesRelational Databases
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.3 </span>A Books DatabaseA Books Database
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.4 </span>LINQ to Entities and the ADO.NET Entity FrameworkLINQ to Entities and the ADO.NET Entity Framework
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5 </span>Querying a Database with LINQQuerying a Database with LINQ
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5.1 </span>Creating the ADO.NET Entity Data Model Class LibraryCreating the ADO.NET Entity Data Model Class Library
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5.2 </span>Creating a Windows Forms Project and Configuring It to Use the Entity Data ModelCreating a Windows Forms Project and Configuring It to Use the Entity Data Model
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.5.3 </span>Data Bindings Between Controls and the Entity Data ModelData Bindings Between Controls and the Entity Data Model
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.6 </span>Dynamically Binding Query ResultsDynamically Binding Query Results
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.7 </span>Retrieving Data from Multiple Tables with LINQRetrieving Data from Multiple Tables with LINQ
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.8 </span>Creating a Master/Detail View AppCreating a Master/Detail View App
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">22.9 </span>Address Book Case StudyAddress Book Case Study
    15. Terminology
    16. Self-Review Exercises
    17. Exercises
  32. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23 </span>Asynchronous Programming with Asynchronous Programming with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036E6F"><b>async</b></code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036E70"><b>await</b></code>
    1. Objectives
    2. Outline
    3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.1 </span>Introduction Introduction
    4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.2 </span>Basics of Basics of <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036EF8">async</code> and and <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036EF9">await</code>
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.2.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036F00">async</code> Modifier Modifier
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.2.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036F06">await</code> Expression Expression
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.2.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036F22">async, await</code> and Threads and Threads
    5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3 </span>Executing an Asynchronous Task from a GUI AppExecuting an Asynchronous Task from a GUI App
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.1 </span>Performing a Task AsynchronouslyPerforming a Task Asynchronously
        1. A Compute-Intensive Algorithm: Calculating Fibonacci Numbers Recursively
        2. Exponential Complexity
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.2 </span>Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036F43">calculateButton_Click</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.3 </span>Task Method Run: Executing Asynchronously in a Separate ThreadTask Method Run: Executing Asynchronously in a Separate Thread
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036F70">awaiting</code> the Result the Result
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.5 </span>Calculating the Next Fibonacci Value SynchronouslyCalculating the Next Fibonacci Value Synchronously
    6. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.4 </span>Sequential Execution of Two Compute-Intensive TasksSequential Execution of Two Compute-Intensive Tasks
    7. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5 </span>Asynchronous Execution of Two Compute-Intensive TasksAsynchronous Execution of Two Compute-Intensive Tasks
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036FC2">awaiting</code> Multiple Tasks with Task Method Multiple Tasks with Task Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036FC3">WhenAll</code>
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5.2 </span>Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036FE7">StartFibonacci</code>
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5.3 </span>Modifying a Modifying a <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000036FEE">GUI</code> from a Separate Thread from a Separate Thread
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037003">awaiting</code> One of Several Tasks with Task Method One of Several Tasks with Task Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037004">WhenAny</code>
    8. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6 </span>Invoking a Flickr Web Service Asynchronously with Invoking a Flickr Web Service Asynchronously with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037019">HttpClient</code>
      1. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.1 </span>Using Class Using Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037042">HttpClient</code> to Invoke a Web Service to Invoke a Web Service
      2. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.2 </span>Invoking the Flickr Web Service&#8217;s Invoking the Flickr Web Service’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P700101285300000000000000003705B">flickr.photos.search</code> Method Method
      3. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.3 </span>Processing the XML ResponseProcessing the XML Response
        1. XML Elements and Attributes
        2. Class <b xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops">XDocument</b> and LINQ to XML and LINQ to XML
      4. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.4 </span>Binding the Photo Titles to the ListBoxBinding the Photo Titles to the ListBox
      5. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.5 </span>Asynchronously Downloading an Image&#8217;s BytesAsynchronously Downloading an Image’s Bytes
    9. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.7 </span>Displaying an Asynchronous Task&#8217;s ProgressDisplaying an Asynchronous Task’s Progress
    10. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.8 </span>Wrap-UpWrap-Up
    11. Summary
      1. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.1</span> Introduction Introduction
      2. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.2.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000371BF"><b>async</b></code> Modifier Modifier
      3. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.2.2 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000371C9"><b>await</b></code> Expression Expression
      4. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.2.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000371D9"><b>async</b></code>, , <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000371DA"><b>await</b></code> and Threads and Threads
      5. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.1</span> Performing a Task Asynchronously Performing a Task Asynchronously
      6. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.2</span> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000371EC"><b>calculateButton_Click</b></code>
      7. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.3 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000371F6"><b>Task</b></code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000371F7"><b>Run</b></code>: Executing Asynchronously in a Separate Thread: Executing Asynchronously in a Separate Thread
      8. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P700101285300000000000000003720B"><b>await</b></code>ing the Resulting the Result
      9. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.3.5</span> Calculating the Next Fibonacci Value Synchronously Calculating the Next Fibonacci Value Synchronously
      10. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.4</span> Sequential Execution of Two Compute-Intensive Tasks Sequential Execution of Two Compute-Intensive Tasks
      11. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5</span> Asynchronous Execution of Two Compute-Intensive Tasks Asynchronous Execution of Two Compute-Intensive Tasks
      12. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5.1 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037232"><b>await</b></code>ing Multiple ing Multiple <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037233"><b>Task</b></code>s with s with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037234"><b>Task</b></code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037235"><b>WhenAll</b></code>
      13. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5.3</span> Modifying a GUI from a Separate Thread Modifying a GUI from a Separate Thread
      14. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.5.4 </span><code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037256"><b>await</b></code>ing One of Several Tasks with ing One of Several Tasks with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037257"><b>Task</b></code> Method Method <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037258"><b>WhenAny</b></code>
      15. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6</span> Invoking a Flickr Web Service Asynchronously with Invoking a Flickr Web Service Asynchronously with <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037262"><b>HttpClient</b></code>
      16. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.1</span> Using Class Using Class <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037269"><b>HttpClient</b></code> to Invoke a Web Service to Invoke a Web Service
      17. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.2</span> Invoking the Flickr Web Service&#8217;s Invoking the Flickr Web Service’s <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P7001012853000000000000000037273"><b>flickr.photos.search</b></code> Method Method
      18. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.3</span> Processing the XML Response Processing the XML Response
      19. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.4</span> Binding the Photo Titles to the Binding the Photo Titles to the <code xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" data-uri="M23_PAUL1540_06_SE_C23.xhtml#P70010128530000000000000000372AC"><b>ListBox</b></code>
      20. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.6.5</span> Asynchronously Downloading an Image&#8217;s Bytes Asynchronously Downloading an Image’s Bytes
      21. Section <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">23.7</span> Displaying an Asynchronous Task&#8217;s Progress Displaying an Asynchronous Task’s Progress
    12. Terminology
    13. Self-Review Exercises
    14. Exercises
  33. Chapters on the Web
  34. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">A </span>Operator Precedence ChartOperator Precedence Chart
  35. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">B </span>Simple TypesSimple Types
  36. <span xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" class="number">C </span>ASCII Character SetASCII Character Set
  37. Appendices on the Web
  38. Index
    1. Symbols
    2. Numerics
    3. A
    4. B
    5. C
    6. D
    7. E
    8. F
    9. G
    10. H
    11. I
    12. J
    13. K
    14. L
    15. M
    16. N
    17. O
    18. P
    19. Q
    20. R
    21. S
    22. T
    23. U
    24. V
    25. W
    26. X
    27. Y
    28. Z