• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Interfaces also extend

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recently, while i was going thru Khalid Mugal, I came to know that Interfaces also extend (ref. to details of Topic "Interfaces"). I was really surprised cos' wht i knew till date was that Interfaces don't extend, they implement. Is that Book correct or I m. Please let me know. And if that happen can anyone explain how does that happen?
Thanx In advance
Anukampa
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Classes implement Interfaces but one interface can extend another interface.

I1 is the super interface. I2 is the sub-interface.
HTH
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NOT only they extend single interface but also multiple
for eg
interface I1 extends I2,I3 ..{
}
is perfectly legal but u cannot extend class like this
 
Anu
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bharatesh can u please also let me know does interfaces also extend only one class at a time or there can be multiple inheritence in case of interfaces.
Thanx.
Anukampa.
 
reply
    Bookmark Topic Watch Topic
  • New Topic