O'Reilly logo

C# 2012 for Programmers, Fifth Edition by Paul Deitel, Harvey M. Deitel, Abbey 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:

Image Understand encapsulation and data hiding.

Image Use composition to allow a class to have references to objects of other classes as members.

Image Throw an exception to indicate that an argument is out of range.

Image Use keyword this.

Use static variables and methods.

Use readonly fields. ...

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