| Author |
Regarding Interfaces
|
praveen raaj
Greenhorn
Joined: Nov 30, 2009
Posts: 11
|
|
Hi Friends,
Object class is a super class for all classes,Right?so what about Interfaces?
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
An interface is not a class.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Patricia Samuel
Ranch Hand
Joined: Sep 12, 2007
Posts: 300
|
|
|
What exactly you want to ask?
|
 |
Marco Ehrentreich
best scout
Bartender
Joined: Mar 07, 2007
Posts: 1220
|
|
Hi Praveen,
there is simply no concept like a "global super interface" I think the reason is simply because it wouldn't make much sense to define an abstract global interface all classes must implement. With "Object" that's another thing because it doesn't only provide an abstract interface but instead "real" functionality which is required for all objects in Java to work properly with core concepts and APIs. I hope this makes it clearer.
Marco
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
|
But whenever you instantiate an interface, usually by making a class which implements that interface, that class extends java.lang.Object.
|
 |
 |
|
|
subject: Regarding Interfaces
|
|
|