package com.chinada.dms.test;

public class Test1 {
    public static void main(String[] args) {
        MyTest one=new MyTest(){
            @Override
            public String get1() {
                System.out.println("我是接口方法1");
                return "你好呀";
            }
            @Override
            public String get2() {
                System.out.println("我是接口方法2");
                return "你好呀";
            }
        };
    }
}
interface  MyTest{
    public String get1();
    public String get2();
}