Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interface

 
Prabha Dhandapani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can sombody tell me the difference between implementing an interface and extending an interface.
Thanks,
Prabha
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Prabha Dhandapani!
Note that The Beginners Forum is likely a more appropriate place to ask such a question. This JavaRanch forum, where we are now, was intended for questions related to JavaRanch and the Big Moose Saloon.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Concerning answering your question, perhaps a quick example with less than complete descriptions will help.
Consider the following interface definitions, which exemplify one interface extending another.If a class is defined to implement InterfaceB, then it must implement all methods declared in InterfaceA and in InterfaceB (else the class must be declared abstract).
If something isn't clear, just ask another question.
I hope to see you 'round the Ranch!
 
Prabha Dhandapani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Dirk Schreckmann,
Thanks a lot for the explanation. My doubt has been cleared.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic