-
-
Save iyengarajay/73910694e245a5ce1409bffc5e4364d0 to your computer and use it in GitHub Desktop.
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
interface Parent { | |
default public void methodOne() { | |
System.out.println("Method one..."); | |
} | |
default public void methodTwo() { | |
System.out.println("Method two..."); | |
} | |
} | |
interface Child extends Parent{ | |
} | |
public class ConcreteClass implements Child { | |
public static void main(String[] args) | |
{ | |
ConcreteClass concreteClass = new ConcreteClass(); | |
concreteClass.methodOne(); | |
concreteClass.methodTwo(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment