aspose file tools*
The moose likes Beginning Java and the fly likes Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface" Watch "Interface" New topic
Author

Interface

Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
Does someone can Explain to me what is interface?
Thanks
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
sure thing.
an interface is like an abstract class.
as u may know, an abstract class is a class that SOME of its methods are abstract and some maybe not.
an interface is like an abstract class which ALL methods are abstract by default.
interfaces do not provide implentation of methods, they only define behaviours - ie signatures of methods.
class can implement an interface (unlike a class which they extend) and they can do it with with multiple interfaces (they can implement many) as opose to only 1 in extends.
for better refrence to interfaces u can check the sun tutoriol on it in http://java.sun.com
 
 
subject: Interface