• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

??Interfaces??

 
vivek parepalli
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
Can someone brief me what are the advantages of Interfaces other than achieving Multiple Inheritance. I mean the methods in the Interfaces are just declared but not defined. To use them anyways we are defining them in our own class so what is the need of the INTERFACE concept. This looks silly. But, please take some time to answer.
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than repeat oft-cited information here, I recommend you read the following informative interview with Erich Gamma, one of the "Gang of Four" and author of one of the most influential books on object-oriented design:

Program to an interface, not an implementation

Hope this helps.
 
Raghuveer Kumarakrishnan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve thanks for the link it was a really good article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic