Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is polymorphism?
Message
De
26/03/1999 21:32:34
 
 
À
26/03/1999 03:09:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00200864
Message ID:
00202656
Vues:
18
Java interfaces (as well as C++ interfaces) are more an insurance for polymorphism than multiple inheritance (technically, classes don't inherit anything from interfaces). They are only a contract between programmer and compiler that certain methods will be there.

Vlad

>Java interfaces provide a partial solution. They provide a single place to declare the methods that will be supported by a class that impliments the interface, but you have to provide the code for the methods.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform