public class MyList<T> where T : IComparable { private T[] array; private int count; public MyList(int size) { ) { array = new T[size]; } } public MyList() { array = ]; } public int Capacity { get { return array.Length; } } public int Count { get {…
c#只能继承一个基类和多个接口(0+) 父类:Human: class Human { public virtual Move() { Console.WriteLine("Human的虚方法"); } public viod Play() { Console.WriteLine("Human的Play方法"); } } 子类:Chinese: class Chinese:Human { public override void Move() { Console.W…