But what, to serve our private ends, Forbids the cheating of our friends?
This above all: to thine own self be true.
In this chapter you’ll:
• Understand encapsulation and data hiding.
• Use composition to allow a class to have references to objects of other classes as members.
• Throw an exception to indicate that an argument is out of range.
• Use keyword
static variables and methods.
• Take advantage of C#’s memory-management features.
• Use the IDE’s Class View and Object Browser windows.
• Use object initializers to create an object and initialize it in the same statement.