Advertisement

Understanding Encapsulation

  • Andrew Troelsen
  • Philip Japikse

Abstract

In the  Chapters 3 and  4, you investigated a number of core syntactical constructs that are commonplace to any .NET application you might be developing. Here, you will begin your examination of the object-oriented capabilities of C#. The first order of business is to examine the process of building well-defined class types that support any number of constructors. After you understand the basics of defining classes and allocating objects, the remainder of this chapter will examine the role of encapsulation. Along the way, you will learn how to define class properties and come to understand the details of the static keyword, object initialization syntax, read-only fields, constant data, and partial classes.

Keywords

Public Employee Static Void Static Constructor Member Variable Double Balance 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Andrew Troelsen and Philip Japikse 2015

Authors and Affiliations

  • Andrew Troelsen
    • 1
  • Philip Japikse
    • 1
  1. 1.MinneapolisUSA

Personalised recommendations