P
Phill
When should you use an interface over a delegate?
Like if you have a class that needs to sort various types of objects.
Should it use a delegate to do the sorting or require that the objects
implement a sorting interface?
I read that delegates are smaller and of finer granularity than
interfaces. What does that mean exactly? Does it mean they are more
efficient?
Thanks.
Like if you have a class that needs to sort various types of objects.
Should it use a delegate to do the sorting or require that the objects
implement a sorting interface?
I read that delegates are smaller and of finer granularity than
interfaces. What does that mean exactly? Does it mean they are more
efficient?
Thanks.