- 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.
推薦閱讀
- OpenStack Cloud Computing Cookbook(Third Edition)
- Node.js Design Patterns
- Beginning Java Data Structures and Algorithms
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- 數據結構(Java語言描述)
- Python編程完全入門教程
- Amazon S3 Cookbook
- Learning Network Forensics
- Python編程與幾何圖形
- 快速念咒:MySQL入門指南與進階實戰
- Working with Odoo
- Solr Cookbook(Third Edition)
- ASP.NET Core and Angular 2
- Learning D3.js 5 Mapping(Second Edition)
- Learning Apache Thrift