Le 22 mars 07 à 17:46 Soir, [EMAIL PROTECTED] a écrit:

> Interfaces are very handy because, while a class can have only one
> superclass, it can implement as many interfaces as it likes.  Even
> windows can implement interfaces.  And an interface is a type, just
> like a class; you can declare variables or parameters of that type,  
> and
> you can test for an interface with IsA.

Well, while I now understand what is an interface, I don't really  
understand the benefit of using it.

For example, we use classes for grouping codes, but there is no code  
in the interface. The only good thing of interfaces, in my opinion,  
is that the parameters must be entered only once rather than for  
every place (is it really useful?).

May I ask you for a simple example where interface is the only way to  
solve a problem?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to