In Chapter 8, you looked at the features of object-oriented programming (OOP). In this chapter, you put theory into practice and look at defining classes in C#.
I won't go so far as to define class members in this chapter but will concentrate on the class definitions themselves for now. This may sound a little limiting, but don't worry, there's plenty here to get your teeth into!
To start, you look at the basic class definition syntax, the keywords you can use to determine class accessibility and so on, and the way in which you can specify inheritance. You also look at interface definitions, because they are similar to class definitions in many ways.
The rest of the chapter covers various topics that apply when defining classes in C#, including:
The System.Object class
Helpful tools provided by Visual Studio 2005 (VS)
Class libraries
A comparison between interfaces and abstract classes
Struct types
Copying objects
So, to start with, here are the basics.