Re: [JAVA] Use of declaring method abstract in a interface

2007-03-22 Thread Martin Gainty
2007 12:50 AM Subject: Re: [JAVA] Use of declaring method abstract in a interface > All methods in an interface are implicitly abstract. If you declare them > "abstract", you're just making it verbose. Some people don't even put > "public" in interface metho

Re: [JAVA] Use of declaring method abstract in a interface

2007-03-21 Thread Paul Benedict
All methods in an interface are implicitly abstract. If you declare them "abstract", you're just making it verbose. Some people don't even put "public" in interface methods since all interface methods are implicitly public too. Paul temp temp wrote: What is the advantage of declaring method

Re: [JAVA] Use of declaring method abstract in a interface

2007-03-21 Thread Tamas Szabo
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 <[EMAIL PROTECTED]> wrote: What is the advantage of de

[JAVA] Use of declaring method abstract in a interface

2007-03-21 Thread temp temp
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 -