Les interfaces

Les interfaces - Java - Programmation

Marsh Posté le 01-01-2009 à 14:21:16    

Bonjour  :) ,
je cherche l'utilité d'une interface en JAVA  
et pour quoi on dis c'est un contrat ?
merci


---------------
En théorie, il n'y a pas de différence entre la théorie et la pratique.
Reply

Marsh Posté le 01-01-2009 à 14:21:16   

Reply

Marsh Posté le 01-01-2009 à 14:33:38    

http://forum.hardware.fr/hfr/Progr [...] m#t1296679


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 01-01-2009 à 21:10:03    

il faut bien pallier à l'absence de delegates....
 
oups, on est pas vendredi
[:neowen]


---------------
J'ai un string dans l'array (Paris Hilton)
Reply

Marsh Posté le 01-01-2009 à 21:23:01    

Harkonnen a écrit :

il faut bien pallier à l'absence de delegates....
 
oups, on est pas vendredi
[:neowen]


Il n'y a aucun rapport surtout, à la limite il aurait parlé des inner classes/anonymous classes pourquoi pas, mais C# a aussi des interfaces donc 0 pointé, file moi ton titre de modo tu le mérites pas :o


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 01-01-2009 à 21:51:22    

je parlais dans le cadre de l'utilisation d'évenements : en java, les listeners doivent implémenter l'interface xxxListener, en C# on utilise un delegate pour ça :spamafote:


---------------
J'ai un string dans l'array (Paris Hilton)
Reply

Marsh Posté le 01-01-2009 à 22:00:03    

Harkonnen a écrit :

je parlais dans le cadre de l'utilisation d'évenements : en java, les listeners doivent implémenter l'interface xxxListener, en C# on utilise un delegate pour ça :spamafote:


C'est vraiment complètement con tes posts, t'as décidé que magicbuzz ne postait plus assez?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 01-01-2009 à 22:12:24    

masklinn a écrit :


C'est vraiment complètement con tes posts, t'as décidé que magicbuzz ne postait plus assez?


en même temps j'ai bien stipulé qu'on était pas vendredi hein :o
(et je vois pas ce qu'il y a de con dans le fait de dire que les listeners Java implémentent l'interface idoine, c'est bien le cas non ? après ça n'allait pas plus loin que ça, c'était juste un troll post 2008 :o)


---------------
J'ai un string dans l'array (Paris Hilton)
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed