interface in java implementation

Solutions on MaxInterview for interface in java implementation by the best coders in the world

showing results for - "interface in java implementation"
Valentina
17 Feb 2019
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
similar questions
queries leading to this page
interface in java implementation