You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tamas Szabo <sz...@gmail.com> on 2007/03/22 04:02:08 UTC
Re: [JAVA] Use of declaring method abstract in a interface
Hi,
There is no difference.
All methods of an interface are abstract and public by default.
So, you could even type:
interface Test {
void test();
}
and it will have the same exact effect as your examples.
Tamas
On 3/22/07, temp temp <mi...@yahoo.com> wrote:
> What is the advantage of declaring method abstract in a intreface ?
> for example
> difference between
> Intreface Test
> {
> public void test();
> }
>
> and
>
> Intreface Test
> {
> public abstract void test();
> }
>
> Thanks & Regards
> Sairam
>
>
>
> ---------------------------------
> No need to miss a message. Get email on-the-go
> with Yahoo! Mail for Mobile. Get started.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org