Skip to content

Instantly share code, notes, and snippets.

@iyengarajay
Last active June 1, 2016 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iyengarajay/73910694e245a5ce1409bffc5e4364d0 to your computer and use it in GitHub Desktop.
Save iyengarajay/73910694e245a5ce1409bffc5e4364d0 to your computer and use it in GitHub Desktop.
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