8. Classes in the .NET Framework

We’ve been working with classes for the last several chapters. You’ve seen that they are programming constructs that have state (fields and properties) and behavior (methods and events), that they descend from one another in a hierarchy, and that you can access their members with the dot operator.

But you may not think you know what any of that actually means yet, and that’s okay. We’ve only looked at these things very quickly so far, because we were concentrating on other parts of the application development process. In this chapter, we’ll start looking at exactly what classes are and how you go about creating and using them.

Objects INSTANTIATE classes. That is, they are INSTANCES of them. The ...

Get Fluent C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.