Tuesday, October 20, 2009

Interface Vs Delegate

Interfaces allow us to extend some object's functionality, it's a contract
between the interface and the object that implements it. It is used to
simulate multiple inheritance in C#. In the other hand, we have delegates...
They're just safe callbacks or function pointers. They allow us to notify
that something has happened (Events). As you can see they're different as
well as their use.

1 comment:

  1. Hi,
    how about difference between interface vs abstract?


Locations of visitors to this page