Re: What is the practical use of "abstract" and "interface"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/04/2008, Jay Blanchard <jblanchard@xxxxxxxxxx> wrote:
> [snip]
>  > What about encapsulation?
>
>  Interfaces have nothing to do with encapsulation for the smple reason
>  that I
>  can have encapsulation without using interfaces.

Unique use of logic there.

By similar reasoning; swimming trunks have nothing to do with swimming
for the simple reason that I can swim without trunks.

> You are still missing the fundamental point. There is absolutely
> nothing I can do WITH interfaces that I cannot do WITHOUT them,
> therefore they are redundant.

How about compile-time checking that the interface has been correctly
implemented?

-robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux