The Artima Developer Community
Sponsored Link

What is fundamental?



This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


What is fundamental?

Posted by Mike Mannion on 23 Nov 1998, 12:40 AM

Such an interesting subject shouldn't be allowed to run aground!
I was kind of inspired by the following statement from Bill:

> I think Ralph is trying to get at a point I tried to make in
> my article. My ultimate (so far) epiphany about interfaces was
> that they were about something more fundamental
> than multiple inheritance.

For the sake of provocation, might I propose that the fundamental issue here is one of behaviour.
In terms of expressing what the behaviour of a category of objects (the term "class" is a touch loaded), we could say that a Java class requires the programmer to go overboard, since a non-trivial, unambiguous declaration of behaviour can only be made by means of an implementation.
On the other hand, a Java inteface is too weak, since the programmer can only declare method signitures (and constants), and no behaviour.


- MM


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us