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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 8935
    
    9

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Need of interface