Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is polymorphism?
Message
De
27/03/1999 00:16:50
 
 
À
26/03/1999 21:32:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00200864
Message ID:
00202677
Vues:
22
>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.

I think of them as contracts aswell. What is a C++ interface, The Java interface is semantically part of the language. C++ has no such thing. C++ templates are nice, but Java's single base object makes them unnecessary.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform