According to this article, it says:
Use a delegate in the following circumstances:
- A class may need more than one implementation of the method.
Use an interface in the following circumstances:
- A class only needs one implementation of the method.
Can someone explain this to me?
In the above example PerformCalculation_1, PerformCalculation_2 are multiple implementation of PerformCalculation
In the above example only single implementation of method exposed by interface.