O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12. OOP: Polymorphism, Interfaces and Operator Overloading

General propositions do not decide concrete cases.

—Oliver Wendell Holmes

A philosopher of imposing stature doesn’t think in a vacuum. Even his most abstract ideas are, to some extent, conditioned by what is or is not known in the time when he lives.

—Alfred North Whitehead

Objectives

In this chapter you’ll learn:

• How polymorphism enables you to “program in the general” and make systems extensible.

• To use overridden methods to effect polymorphism.

• To create abstract classes and methods.

• To determine an object’s type at execution time.

• To create sealed methods and classes.

• To declare and implement interfaces.

• To overload operators to enable them to manipulate objects.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required