O'Reilly logo

C# 2010 for Programmers, Fourth Edition by Harvey M. Deitel, Paul J. Deitel

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

10. Classes and Objects: A Deeper Look

Objectives

In this chapter you’ll learn:

• Encapsulation and data hiding.

• The concepts of data abstraction and abstract data types (ADTs).

• To use keyword this.

• To use indexers to access members of a class.

• To use static variables and methods.

• To use readonly fields.

• To take advantage of C#’s memory-management features.

• How to create a class library.

• When to use the internal access modifier.

• To use object initializers to set property values as you create a new object.

• To add functionality to existing classes with extension methods.

• To use delegates and lambda expressions to pass methods to other methods for execution at a later time.

• To create objects of anonymous types.

Instead ...

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