在类 MIPhone 中找不到 main 方法,求解

interface FunctionPhone {
    void receiveMessages();
    void call();
}

interface SmartPhone extends FunctionPhone
{
    public abstract void faceTime();
}//定义接口SmartPhone

public class MIPhone implements SmartPhone {//实现接口SmartPhone
        String name;
      public MIPhone(String n){
     name = n;}
    public void receiveMessages() { //实现接口方法receiveMessages 
        System.out.println(name+":在接收短消息");
    }
    public void call() {  //实现接口方法 call
        System.out.println(name+":在语音通话");
    }
     public void faceTime(){ //实现接口方法faceTime 
        System.out.println(name+":在视频通话");
    }
     public void useMIUI() {  // MIPhone类新增的方法
        System.out.println(name+":在使用MIUI");
    }


}
 

你想运行这个MIPhone 类啊?没有main方法,程序不能执行

你就没写main方法啊