Wednesday, September 20, 2006

Methods in Interfaces

You do not have to declare methods in interfaces with an abstract keyword, since interface methods are implicitly abstract.

Methods declared in interfaces body are all implicitly public, and can be accessed outside the package in which the interface is declared as long as the interface itself is public or protected. An interface can be declared private or protected only if it occurs within a class.

No comments: