O'Reilly logo

Introducing Visual C# 2010 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required