Interface Example
uInterface MyArea {
u  int length = 3;
u  int width = 2;
u  double area();
u}
uclass MyBox implements MyArea{
u  public MyBox() { }
u  double area(){ return (length * width); }
u}
uclass MyTest {
u  public static void main (String args[]) {
u    MyArea boxArea = new MyBox();
u    System.out.println("Test box area is: “ +
u        boxArea.area() );
u  }
u}
More advanced Java concepts