摘要:
public class StudentList:ObservableCollection<Student> { public List<Student> studentList = new List<Student>(); public StudentList() { using (mydbEnt 阅读全文
摘要:
重载overload 派生类和基类的方法同名,其中访问修饰符(public,private,protected,internal,protected internal),返回类型,参数类型,个数,顺序中的一个或若干可以不同,实现可以不同; 重写override 必须对抽象类中声明的abstract方 阅读全文
摘要:
接口实现: interface IMath { void Add(int x, int y); } public class MathClass : IMath { public void Add(int x, int y) { Console.WriteLine("This is the inte 阅读全文