Hi all,
Here's the code for a List example taken from
Just Java 2 Fifth Edition (that's the one that handles JDK 1.4 release) p. 460:
The author says: "we write an interface that has constants for the suit and rank of each card ... a class that holds four
cards, inherits these constants by implementing the interface.
The example works fine and I've learnt a lot about Collections from expanding this example, but what's the point of that
interface. If I delete the whole goldurn thing the program works just as well!!!
Can somebody please explain this?
I'm sure I must be missing something...
[ January 20, 2008: Message edited by: Dick Summerfield ]