摘要: public class StudentList:ObservableCollection<Student> { public List<Student> studentList = new List<Student>(); public StudentList() { using (mydbEnt 阅读全文
posted @ 2016-10-20 16:06 FredGrit 阅读(364) 评论(0) 推荐(0)
摘要: 重载overload 派生类和基类的方法同名,其中访问修饰符(public,private,protected,internal,protected internal),返回类型,参数类型,个数,顺序中的一个或若干可以不同,实现可以不同; 重写override 必须对抽象类中声明的abstract方 阅读全文
posted @ 2016-10-20 15:00 FredGrit 阅读(209) 评论(0) 推荐(0)
摘要: 接口实现: 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 阅读全文
posted @ 2016-10-20 14:17 FredGrit 阅读(305) 评论(0) 推荐(0)