Advertisement
JeffGrigg

Untitled

Dec 10th, 2017
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.35 KB | None | 0 0
  1. interface I1 {
  2.     void m1();
  3. }
  4.  
  5. interface I2 {
  6.     void m1();
  7. }
  8.  
  9. public class ConflictingMultipleInterface implements I1, I2 {
  10.  
  11.     @Override
  12.     public void m1() {
  13.         System.out.println("Works just fine, thank you!");
  14.     }
  15.  
  16.     public static void main(String[] args) {
  17.         new ConflictingMultipleInterface().m1();
  18.     }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement