Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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