10. Classes and Objects: A Deeper Look

Instead of this absurd division into sexes, they ought to class people as static and dynamic.

Evelyn Waugh

Is it a world to hide virtues in?

William Shakespeare

But what, to serve our private ends, Forbids the cheating of our friends?

Charles Churchill

This above all: to thine own self be true.

William Shakespeare

Don’t be “consistent,” but be simply true.

Oliver WendellHolmes, Jr.

OBJECTIVES

In this chapter you’ll learn:

Image  Encapsulation and data hiding.

Image  The concepts of data abstraction and abstract ...

Get C# 2008 For Programmers Third Edition Deitel® Developer Series 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.