实现了父类继承接口,父类实例化接口的方法,子类继承父类,子类调用父类的方法直接使用 代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace sortAndArea { public interface Sort { List<int> sort(); } public interface Area { long area(); } abstract…
基础知识一: using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace WindowsFormsApplication2 { public class ParentClass { public ParentClass() { } public string NamePropety { get; set; } public string GetNa…