java define interface

Java
/* File name : Animal.java */
interface Animal {
   public void eat();
   public void travel();
}
Source

Also in Java: