public interface ExistingInterface { | |
public void connect(); | |
public void disconnect(); | |
//Default method. | |
public default void connectUsingNewProtocol(){ | |
System.out.println("Connection to a new device"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment