Skip to content

Instantly share code, notes, and snippets.

@SungjinYoo
Last active November 13, 2018 11:18
Show Gist options
  • Save SungjinYoo/5c0cf58103faaf19600a9a99ea76c90d to your computer and use it in GitHub Desktop.
Save SungjinYoo/5c0cf58103faaf19600a9a99ea76c90d to your computer and use it in GitHub Desktop.
Sample functional interface definition
interface SampleFunctionalInterface {
// I am the only abstract method in this interface
int foo();
}
interface AnotherSampleFunctionalInterface {
// I am the only abstract method in this interface
int foo();
default void bar() {
// I am not a abstract method
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment