7 Methods: A Deeper Look

Objectives

In this chapter you’ll:

  • Learn how static methods and variables are associated with classes rather than objects.

  • Use common Math class functions.

  • Learn C#’s argument promotion rules for when argument types do not match parameter types exactly.

  • Get a high-level overview of various namespaces from the .NET Framework Class Library.

  • Use random-number generation to implement game-playing apps.

  • Understand how the visibility of identifiers is limited to specific regions of programs.

  • Learn how the method call and return mechanism is supported by the method-call stack.

  • Create overloaded methods.

  • Use optional and named parameters.

  • Use recursive methods.

  • Understand what value types and reference types are.

  • Pass method arguments by value and by reference.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset