Chapter 17. INHERITANCE PART II: abstract FUNCTIONS, POLYMORPHISM, and INTERFACES

You will learn about the following in this chapter:

  • abstract functions and abstract classes

  • Polymorphism and why abstract functions and abstract classes are important for implementing polymorphic software

  • The dynamic binding mechanism, which is fundamental to polymorphism

  • The advantages of polymorphism and examples of how it empowers programmers

  • How type information is lost through up casting and how it can be regained through down casting by the use of the cast operator, the is operator and the as operator

  • The System.Object class, from which all classes are ultimately derived

  • Method hiding and method overriding

  • Versioning and how it is supported in C#

  • Multiple inheritance ...

Get C# Primer Plus 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.