Actually an Inheritance is a concept. Interface, in its turn, is a Java Type, which allows you to determine and write common lines of behaviour for multiple inherited objects. it contains empty method declarations and so on. take a look here: http://java.sun.com/docs/books/tutorial/java/concepts/interface.html
2009/3/18 Anton Shaykin <[email protected]> > > When you use interface you declare a set of abstract methods, which > should be overridden later in classes that implement this interface. > It's not a definition, otherwise your methods would have to have > bodies, like > > return-type method-name(parameter list){ > // some code here > } > > Instead, you do: > return-type method-name(parameter list); > > Hope this helped! > Regards. > > On Mar 18, 1:47 pm, sudhi <[email protected]> wrote: > > Dear 4engineershelp, > > > > I think its not just declaration it is actually definition > > of the function itself but the definition is empty and > > later when you implement that interface you have to > > override that method inorder to use it. > > > > Is this correct or is it just the declaration > > > > Thanks and Rergards > > Sudhi > > > > -- С уважением, Николай. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
