• Post Reply Bookmark Topic Watch Topic
  • New Topic

interface B extends A  RSS feed

 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
This is my q
We can extend only one class right ?

class A
class B extends A

As for my knowledge we can extend only one interface two right ?

interface A
interface B extends A

But is there a why to extend multiple interfaces ?
Please explain with examples !
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interface can extend multiple interfaces

interface C extends B, A

and a class can implement multiple interfaces

class D implements B, A

Not sure there's anything to explain.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!