- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 98字
- 2021-07-03 00:12:03
How it works...
Polymorphism is something you will easily be using already by simply applying good object-oriented principles to the design of your classes. With the abstract Shuttle class, we saw that the class took on the shape of the NasaShuttle class and the RoscosmosShuttle class when it was used to derive those new classes from its abstraction. The constructor of the NasaShuttle class was then overridden to provide the same method name, but implemented using different signatures.
This is at the heart of polymorphism. Most likely, you have been using it without knowing about it.
推薦閱讀
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- 小創客玩轉圖形化編程
- PHP程序設計(慕課版)
- TypeScript項目開發實戰
- Learning Probabilistic Graphical Models in R
- Create React App 2 Quick Start Guide
- 利用Python進行數據分析
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- Mastering Elasticsearch(Second Edition)
- Kubernetes進階實戰
- Beginning C++ Game Programming
- Xamarin Blueprints
- 現代C:概念剖析和編程實踐
- UML軟件建模
- Android 游戲開發大全(第二版)