- 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.
推薦閱讀
- Practical Data Analysis Cookbook
- Google Flutter Mobile Development Quick Start Guide
- Java 9 Programming Blueprints
- 精通API架構(gòu):設(shè)計(jì)、運(yùn)維與演進(jìn)
- Python機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- 名師講壇:Java微服務(wù)架構(gòu)實(shí)戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Elasticsearch for Hadoop
- SQL Server數(shù)據(jù)庫(kù)管理與開發(fā)兵書
- Go語(yǔ)言底層原理剖析
- 零基礎(chǔ)學(xué)HTML+CSS
- INSTANT JQuery Flot Visual Data Analysis
- Jakarta EE Cookbook
- Effective C++:改善程序與設(shè)計(jì)的55個(gè)具體做法(第三版)中文版(雙色)
- Python滲透測(cè)試編程技術(shù):方法與實(shí)踐(第2版)
- Python繪圖指南:分形與數(shù)據(jù)可視化(全彩)