• 2021-04-14
    下列程序运行结果是
    public class Demo {
    public static void main(String[] args) {
    Object obj=new Father(){
    public void show(){
    System.out.println("helloworld");
    }
    };
    obj.show();
    }
    }
    class Father{
    public void show(){
    System.out.println("hello father");
    }
    }
  • 举一反三