- 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.
推薦閱讀
- DevOps for Networking
- Java FX應(yīng)用開發(fā)教程
- 基于Java技術(shù)的Web應(yīng)用開發(fā)
- 你必須知道的204個Visual C++開發(fā)問題
- TypeScript項目開發(fā)實戰(zhàn)
- Visual C++開發(fā)入行真功夫
- Nginx Lua開發(fā)實戰(zhàn)
- Java程序設(shè)計案例教程
- Android應(yīng)用開發(fā)實戰(zhàn)
- FPGA嵌入式項目開發(fā)實戰(zhàn)
- Everyday Data Structures
- Photoshop CC移動UI設(shè)計案例教程(全彩慕課版·第2版)
- Android初級應(yīng)用開發(fā)
- C語言從入門到精通(第5版)
- 計算機(jī)軟件項目實訓(xùn)指導(dǎo)