Defining Encapsulated Class Types

  • Andrew Troelsen


In the previous two chapters, you investigated a number of core syntactical constructs that are commonplace to any .NET application you may 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. Once 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 understand how to define class properties as well as the role of static members, object initialization syntax, read-only fields, constant data, and partial classes.


Public Employee Access Modifier Static Void Nest Type Static Constructor 
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.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Andrew Troelsen 2010

Authors and Affiliations

  • Andrew Troelsen

There are no affiliations available

Personalised recommendations