An interface is like a contract to which you define the procedures/
functions, but it does not have an implementation.
The implementation is done through the class that will use it.

Now if you have several classes that will use that interface, you have
the ability
to define different behaviors for each class.

I suggest you read more about this to broaden your understanding.



Regards,

Benj



On Nov 13, 4:52 pm, "It's time to do something" <supern...@live.co.uk>
wrote:
> Hi, can anyone here give me some ideas on how important interface is
> (in C#) and what it can do?
> I've learned that it can  be used as polymorphism, but I don't
> understand why in some cases we don't use polymorphism instead ? And
> when do we use interface ? When do we use polymorphism  instead ?
> Thank you so much ! I'm just a newbie at all. Hope someone will help
> me !

Reply via email to