- 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.
推薦閱讀
- Objective-C Memory Management Essentials
- Maven Build Customization
- HoloLens Beginner's Guide
- AngularJS深度剖析與最佳實踐
- 編寫高質量代碼:改善C程序代碼的125個建議
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- Building Slack Bots
- C++程序設計
- Building Business Websites with Squarespace 7(Second Edition)
- Instant Apache Camel Messaging System
- WebStorm Essentials
- Learning Unreal Engine Game Development
- AutoCAD基礎教程
- PHP+MySQL Web應用開發教程
- Extending Docker