loading
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public interface vehicle {

   default void print() {
      System.out.println("I am a vehicle!");
   }
}

public interface fourWheeler {

   default void print() {
      System.out.println("I am a four wheeler!");
   }
}