Created
October 26, 2015 05:55
-
-
Save anjanashankar9/2ea4b366a66d871d4f8d to your computer and use it in GitHub Desktop.
Interfaces in Java8
This file contains 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
public class InterfaceImpl implements InterfaceA,InterfaceB{ | |
@Override public void method() { | |
System.out.println("Default method in implementation class"); | |
} | |
public static void main(String[] args){ | |
InterfaceA obj = new InterfaceImpl(); | |
obj.method(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment