- C# 7 and .NET Core 2.0 Blueprints
- Dirk Strauss Jas Rademeyer
- 140字
- 2021-08-27 19:55:25
Compile-time polymorphism versus run-time polymorphism
Before we go further, let me pause for a minute and explain the previous two bullet points on polymorphism.
When we say compile-time polymorphism, we are saying that we will be declaring methods with the same name but with different signatures. Therefore, the same method can perform different functions based on the signature (parameters) it receives. This is also known as early binding, overloading, or static binding.
When we say run-time polymorphism, we are saying that we will be declaring methods with the same name and with the same signature. In a base class, for example, the method is overridden by the method in a derived class. This is achieved by what we call inheritance and by using the virtual or override keywords. Run-time polymorphism is also known as late binding, overriding, or dynamic binding.
- UI圖標創意設計
- Functional Python Programming
- Expert C++
- 程序員面試筆試寶典(第3版)
- 深入淺出Java虛擬機:JVM原理與實戰
- Practical Data Science Cookbook(Second Edition)
- PyTorch Artificial Intelligence Fundamentals
- Flash CS6中文版應用教程(第三版)
- Python貝葉斯分析(第2版)
- C語言程序設計
- 軟件測試實用教程
- Frank Kane's Taming Big Data with Apache Spark and Python
- INSTANT Adobe Edge Inspect Starter
- 21天學通C++(第5版)
- Canvas Cookbook