Ask a developer, “What are the fundamental characteristics of object-oriented programming (OOP)?” and you will get an immediate reply saying, “Classes (and objects), inheritance, abstraction, encapsulation, and polymorphism are the most important characteristics in OOP”. In addition, when you analyze enterprise code that is based on OOP, you’ll find different forms of polymorphism. But the truth is, a novice programmer rarely uses the power of polymorphism. This chapter focuses on ...
1. Flexible Code Using Polymorphism
Get Simple and Efficient Programming with C#: Skills to Build Applications with Visual Studio and .NET 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.