[570] in java-interest
interfaces vs abstract classes
daemon@ATHENA.MIT.EDU (Claude M. Landry)
Fri Jun 30 20:57:15 1995
Date: Fri, 30 Jun 95 20:41:08 -0400
From: "Claude M. Landry" <claude.landry@act.ulaval.ca>
To: java-interest@java.Eng.Sun.COM
I have been looking to the Java langage for some weeks now,
and I'm still asking to myself why an interface operator has been introduced...
I must be missing something because it seem to me that interfaces are nothing
more than abstract classes where all methods are public and abstract,
and where all variables are public, static and final.
I know that interfaces support multiple inheritances and classes don't.
But one could have said that non-abstract classes support only single inheritance
and abstract classes support multiple inheritances if their methods are public and
abstract, and their variables are public, static and final.
Is the only real use of the interface operator is to make the code easier to read?
Or am I missing something?
Claude,
Claude M. Landry | "Impossible n'est pas francais"
Responsable Informatique | - Napoleon Bonaparte
Ecole d'actuariat | e-mail: claude.landry@act.ulaval.ca
Universite Laval | Tel : (418) 656-2131 Ext.8259
Quebec, Qc, Canada G1K 7P4 | Fax : (418) 656-7790
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com