class SamsungPhone implements MobilePhoneInterface{
public void sendCall(){...}
public void receiveCall(){...}
public void sendSMS(){...}
public int getButtons(){...}
}
public interface Phone{
public void call();
}
public interface Phone{
public default void call(){
System.out.println("Calling...");
}
}
public interface FirstMethod{
default boolean test(){
return true;
}
}
public interface SecondMethod{
default boolean test(){
return true;
}
}
public class ChildMethod implements FirstMethod, SecondMethod{
}
public class ChildMethod implements FirstMethod, SecondMethod{
FirstMethod.super.test();
Second.super.test();
}
public interface Phone{
static void message(){
System.out.println("Sending Message");
}
}
public class Main{
public static void main(String[] args){
Phone.message();
}
}