Classes

by Sam Allen | RSS

Classes are at the core of object-oriented programming, and they represent a set of discrete behavior and data. They provide isolation and protection for individual parts of a program, called encapsulation. Classes make modifications and improvements of large and complex programs possible, by allowing programmers to focus on smaller parts.

Base Constructor
Class Program
Constructor Comparison
Constructor Overload (This)
Default Constructor
GetType Method
Global Variable Use
Indexer Example
Indexer Interface Use
Interface Program 1
Interface Property
New Class Instance
Private Constructor
Property Test
Protection Proxy Design Pattern
Public Static Readonly Fields
Readonly Field Usage
Sealed Class Test 1
Static Constructor
Static Field Use
This Instance
Unboxing Test
Variable Initializer for Class Field

Dot Net Perls | Search
Featured | 7-Zip Command-Line Examples | DataGridView Tips and Secrets | Dictionary Examples, Keys and Values | List Examples | Split String Examples
C# | Obsolete Attribute | True and False | Gradient Tips | Catch Examples
© 2010 Sam Allen. All rights reserved.
Dot Net Perls | Sam Allen