Skip to content

Instantly share code, notes, and snippets.

@juliofalbo
Created November 4, 2019 20:43
Show Gist options
  • Save juliofalbo/ad8a60088696a7080980c21383ee4c32 to your computer and use it in GitHub Desktop.
Save juliofalbo/ad8a60088696a7080980c21383ee4c32 to your computer and use it in GitHub Desktop.
Inheritance Functional Interface
@FunctionalInterface
interface ParentInterface{
void parentAbstractMethod();
}
@FunctionalInterface
interface ChildInterface extends ParentInterface{
void parentAbstractMethod();
default void defaultChildMethod1(){
}
default void defaultChildMethod2(){
}
static void staticChildMethod(){
}
String toString();
}
interface AnotherChildInterface extends ChildInterface{
public String someAbstractMethod(String someParameter);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment