摘要:
以前有个朋友提出这样一个问题:有一个接口Interface1定义如下:
interface Interface1
{
void HelloWorld();
}
用一个类去实现这个接口:
public class class1 : Interface1
{
public void HelloWorld()
{
System.Windows.Forms.MessageBox.Show("Hello World!");
}
}
阅读全文