1public interface SomeInterface(){
2 default void test(){
3 //this will be done when the method is called by default
4 }
5}
6public class SomeInterfaceImpl implements SomeInterface{
7 //has test method from SomeInterface, can be overwritten
8}
9public class SomeClass{
10 public void test(){
11 //do something else
12 }
13}
14public class SomeOtherClass extends SomeClass implements SomeInterface{
15 //uses the test method from SomeClass
16}
17