File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes ??Interfaces?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "??Interfaces??" Watch "??Interfaces??" New topic
Author

??Interfaces??

vivek parepalli
Greenhorn

Joined: Jul 16, 2004
Posts: 9
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

Joined: May 22, 2003
Posts: 657

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

Joined: Mar 13, 2005
Posts: 32
Steve thanks for the link it was a really good article.


Raghu<br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ??Interfaces??