程序接口怎么写( 三 )


public void helloword();
}
public class test_class : test_interface{
public void test_interface.helloword()
{
console.writeline("helloword");
}
// public void override helloword()
// {
//console.writeline("helloword");
// }
static void Main()
【程序接口怎么写】{
test_interface inter = new test_class();
inter.helloword();
}
}

程序接口怎么写

文章插图