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)
}
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #Java #Interface
ADD COMMENT
Topic
Name
2+7 =