access interface name /* access is either public or not used (default) */
{
type final-varname1 = value; /* static final implied */ /* must be initialized with a constant value*/
type final-varname2 = value;
return-type method-name1(parameter-list); /*abstract methods */ /* no body */
return-type method-name2(parameter-list);
...
} /* All methods and variables are implicitly public if the interface, itself, is declared as public. */
No comments:
Post a Comment