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 Wendell Holmes, Jr.
In this chapter you will 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 ...
No credit card required