CS202 Java-95
Interfaces in Java
lThe interface keyword creates a completely abstract class
•One that provides for no implementation
•Makes it “pure”
•It allows us to specify the method names, argumetn lists, and return types – but no bodies
•It can include data members, but they are always implicitly static and final
•It provides a “form” rather than an implemented class
•Use the “interface” keyword instead of the class keyword
•All of the members are automatically “public” even if you don’t use the keyword. They are never “friendly” and cannot be protected or private!
•