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

Does every interface extend class Object?

 
Gyanesh Sharma
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know every class extend Object by default. Is this true with Interfaces too?
A related question would be, can an interface extend another class?

Thanks
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interfaces do not extend Object. Interfaces may extend other interfaces.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic