Interface default public interface IInterface {default String test() {return "this is test";};}public class Interface implements IInterface {public static void main(String[] args) {Interface interface1 = new Interface();System.out.println(i
public interface IInterface {
default String test() {
return "this is test";
};
}
public class Interface implements IInterface {
public static void main(String[] args) {
Interface interface1 = new Interface();
System.out.println(interface1.test());
}
}
