-
-
Save RishiPrakash/04ec6ffc3a634d0f665dd5deab4fdc36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testJavaDS; | |
interface A{ | |
static void method() { | |
System.out.println("method A"); | |
} | |
} | |
interface B{ | |
static void method() { | |
System.out.println("method B"); | |
} | |
} | |
public class InterfaceTest implements A,B{ | |
public static void main(String[] s) { | |
A.method(); | |
B.method(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment