<<< | Index | interface implementation example >>> |
A Printable interface defining a print() method:
public interface Printable { public abstract void print(); }
An interface may declare only static constants and abstract methods.
<<< | Index | interface implementation example >>> |