In this chapter:
The benefits of classes
Properties, methods, and events
Shared and instance members
Overriding and shadowing members
Abstraction and refinement
Multiple inheritance and interfaces
Constructors and destructors
IN A MODERN OBJECT-ORIENTED LANGUAGE, A program consists of a group of objects working together to perform a task. One object interacts with the others by reading and setting the other objects’ properties, calling the other objects’ methods, and responding to the other objects’ events.
In a well-defined program, the objects represent more-or-less intuitive entities, and their behaviors are easy to understand. For example, a Customer object would provide customer-related ...