111,117
社区成员




interface ITest
{
ITest ReturnObj();
}
class TestClass : ITest
{
public ITest ReturnObj()
{
return new TestClass(); //返回一个派生类型
}
}
class test
{
static void Main()
{
ITest i = new TestClass();
ITest ii = i.ReturnObj();
}
}