This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interface

 
Sadaf Zaidi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody can please tell me about interface.How interface work.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly what don't you understand about them. Check out the java tutorial at sun's site. You can also use the search facility here. This has been discussed a number of times.

 
anis mistry
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a class cannot inherit two classes that is why java makers brought interfaces
a class can implement one or more interface to extends the functionality of a class
a interface is some like a class. in interface only method declaration is to be done and the class which implement this interface as to and has to write the code or the body of the method according to its need
correct me if i am wrong
bye and best of luck in programmimng career
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic