Created
November 4, 2019 20:43
-
-
Save juliofalbo/ad8a60088696a7080980c21383ee4c32 to your computer and use it in GitHub Desktop.
Inheritance Functional Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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