1interface Moveable
2{
3 int AVG_SPEED = 40;
4 void move();
5}
6
7class Vehicle implements Moveable
8{
9 public void move()
10 {
11 System.out.println ("Average speed is"+AVG-SPEED");
12 }
13 public static void main (String[] arg)
14 {
15 Vehicle vc = new Vehicle();
16 vc.move();
17 }
18}
19