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
-~----------~----~----~----~------~----~------~--~---