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
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
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
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
-
4 matches
Mail list logo