
6.26 Inheritance: Packages: Interfaces
required method is invoked by a reference to interface. The similarities and differences are
high lighted in Table 6.3.
6.15.3 Variables and Methods in Interfaces
In interface declaration creates a reference type in Java. An interface declaration is similar to a
class declaration, with the following two very important differences:
• All of the methods in an interface are abstract. Every method declaration in an interface
specifies the name, arguments and return type of the method, but it does not include
an implementation of the method.
• All of the variables in an interface are static and final.
A method ...