O'Reilly logo

Microsoft® Visual C#® 2005 Step by Step by John Sharp

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 14. Implementing Properties to Access Attributes

After completing this chapter, you will be able to:

  • Encapsulate logical fields by using properties.

  • Control read access to properties by declaring get accessors.

  • Control write access to properties by declaring set accessors.

  • Create interfaces that declare properties.

  • Implement interfaces containing properties, by using structs and classes.

The first two parts of this book have introduced the core syntax of the C# language, and shown you how to use C# to build new types, such as structs, enums, and classes. You have also seen how the runtime manages the memory used by variables and objects when a program runs, and you should now understand the lifecycle of C# objects. The chapters in Part III

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