> Online tutorial : Member Declarations in interface java\
Showing posts with label Member Declarations in interface java\. Show all posts
Showing posts with label Member Declarations in interface java\. Show all posts

Member Declarations in interface java

Interface Body and Member Declarations
The body
of an interface may declare members of the interface:
InterfaceBody:
{
InterfaceMemberDeclarationsopt
}
InterfaceMemberDeclarations:
InterfaceMemberDeclaration
InterfaceMemberDeclarations InterfaceMemberDeclaration
InterfaceMemberDeclaration:
ConstantDeclaration
AbstractMethodDeclaration
ClassDeclaration
InterfaceDeclaration
;
The scope of the declaration of a member m declared in or inherited by an
interface type I is the entire body of I, including any nested type declarations.