Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment