What is the difference between static & dynamic polymorphism?
All Answers
need an explanation for this answer? contact us directly to get an explanation for this answer
need an explanation for this answer? contact us directly to get an explanation for this answer
| # | Static polymorphism | Dynamic polymorphism |
|---|---|---|
| 1. | Method overloading would be an example of static polymorphism. It uses the concept of early binding(Compile time binding). | Method Overriding would be an example of dynamic polymorphism. It uses the concept of late binding(Runtime Binding). |
| 2. | Static polymorphism is faster than dynamic polymorphism because of early binding. | Dynamic polymorphism is faster than static polymorphism because of late binding. |
| 3. | Static polymorphism is less flexible as all things execute at compile time. | Dynamic polymorphism is more flexible as all things execute at run time. |
| 4. | It is achieved by function overloading and operator overloading. | It is achieved by abstract classes and virtual functions. |
total answers (1)

c# programming