Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is polymorphism?
Message
From
27/03/1999 00:16:50
 
 
To
26/03/1999 21:32:34
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00200864
Message ID:
00202677
Views:
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.

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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform