Chapter 10. Object-Oriented Programming
In this chapter:
The benefits of classes
Polymorphism
Properties, methods, and events
Shared and instance members
Inheritance
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 ...
Get Start Here!™ Fundamentals of Microsoft® .NET Programming 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.