Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Interfaces

 
praveen raaj
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
Object class is a super class for all classes,Right?so what about Interfaces?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interface is not a class.
 
Patricia Samuel
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly you want to ask?
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50235
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But whenever you instantiate an interface, usually by making a class which implements that interface, that class extends java.lang.Object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic