Summary

In this chapter, you explored the breadth and depth of object-oriented programming in both the C# programming language and the CLR. First you learned three fundamental pillars of the object-oriented paradigm:

• Encapsulation, to hide implementation details and bundle members together in logical units such as classes.

• Inheritance, providing the capability for subtypes to inherit base type members and extend upon them.

• Polymorphism, allowing use of a more-derived type where a less-derived type is expected. Virtual dispatch allows for polymorphic use of objects.

After covering those pillars, we mapped them onto several concepts as exposed by the C# programming language. First, we familiarized ourselves with the syntax used to perform ...

Get C# 4.0 Unleashed 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.