wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Need  of  interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need  of  interface" Watch "Need  of  interface" New topic
Author

Need of interface

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi All,

About interface,

interface method do not have body .so, it supports multiple inheritence.

well,but my doubt is without body definition,what is the use of implementing the interface.. :roll:

what i feel , Abstract class is meaningful compare to interface
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Abstract Classes vs. Interfaces
It may also be instructive to look at real-life implementations, for example, the Java Collections Framework, which makes good use of both interfaces and abstract classes.
[ September 09, 2008: Message edited by: Joe Ess ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Thanks Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need of interface
 
Similar Threads
iterface method
what is the implementation class of Connection Interface
default value of body-content
clear my doubt
Implementing an interface - Is it IS-A ?