- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 117字
- 2021-07-03 00:12:02
Implementing polymorphism
Polymorphism is a concept that is quite easy to grasp once you have looked at and understood the other pillars of OOP. Polymorphism literally means that something can have many forms. This means that from a single interface, you can create multiple implementations thereof.
There are two subsections to this, namely, static and dynamic polymorphism. With static polymorphism, you are dealing with the overloading of methods and functions. You can use the same method, but perform many different tasks.
With dynamic polymorphism, you are dealing with the creation and implementation of abstract classes. These abstract classes act as a blueprint that tells you what a derived class should implement. The following section looks at both.
推薦閱讀
- JavaScript從入門到精通(微視頻精編版)
- Reporting with Visual Studio and Crystal Reports
- Beginning Java Data Structures and Algorithms
- Ceph Cookbook
- 樂學Web編程:網站制作不神秘
- Vue.js快跑:構建觸手可及的高性能Web應用
- 新編Premiere Pro CC從入門到精通
- JavaScript從入門到精通(第3版)
- SQL Server 2016數據庫應用與開發習題解答與上機指導
- 智能手機故障檢測與維修從入門到精通
- Unity 2017 Game AI Programming(Third Edition)
- 監控的藝術:云原生時代的監控框架
- C#程序設計基礎入門教程
- Professional JavaScript
- Elasticsearch搜索引擎構建入門與實戰