Q:

What is the difference between static & dynamic polymorphism?

0

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

# 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.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What are the ways a method can be overloaded?... >>
<< What is the difference between Interface and Abstr...