Chapter 6. Classes and Objects
You create new functionality in C# programs by defining classes. Classes are the blueprints used to create the objects that you use to represent items in your program. This chapter shows you how to define classes and then use them to create objects.
Along the way, we'll encounter three of the key concepts in object-oriented programming: inheritance, encapsulation, and polymorphism. The way that C# implements these concepts allows you to write classes with the minimum of code and maintain them with the minimum of effort.
Introducing classes and objects means referring to topics that are covered in later chapters. I have tried to provide enough information so that this chapter makes sense on its own, but a certain amount ...
Get Introducing Visual C# 2010 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.