I think it is not that hard to understand, but, I came with a question now.
What the java tutorial said (downloaded from Sun web site)
an interface constant literal variable are implicity declared as
public, static, final
It is fine and correct when an interface implmented by a class and tried assign a value to it and reported an error.
But what confused me is I can declare a variable named the same as the interface do in a class that implemented it, and it don't produce any errors.
If I'am not wrong, c# would rasie an error.
CODE
public interface IInterace()
{
int state = 0; /* implicity public state final */
}
public class AClass implements IInterface
{
int state = 1; /* is this override or shadowed ? */
}
{
int state = 0; /* implicity public state final */
}
public class AClass implements IInterface
{
int state = 1; /* is this override or shadowed ? */
}
Any ideas would be appreciated .
Thanks,

