代码
using System;
abstract class A<T>{
abstract public T fun(T t);
}
class ASub:A<B>{
public override B fun(B t){
return t;
}
}
class B{
public int a = 5;
}
public class Fanxing{
public static void Main(){
Console.WriteLine("hello word");
ASub ab = new ASub();
B b = new B();
B b2 = ab.fun(b);
Console.WriteLine(b2.a);
}
}

1349

被折叠的 条评论
为什么被折叠?



