Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java Interface

// interface
interface Animal {
  public void animalSound(); // interface method (does not have a body)
  public void run(); // interface method (does not have a body)
}
 
PREVIOUS NEXT
Tagged: #Java #Interface
ADD COMMENT
Topic
Name
1+1 =