C#之用Base方法调用基类构造函数学习案例
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace BaseClass_test{ public class BaseClass //基类 { int Number; public BaseCla …… 阅读全文
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace BaseClass_test{ public class BaseClass //基类 { int Number; public BaseCla …… 阅读全文
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace new_test{ public class BClass //基类 { public void DoWork() { …… 阅读全文
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace virtual_test{ public class BClass //基类 { public virtual void DoWork() //虚函 …… 阅读全文
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace override_test{ class TestOverride { public class Employee { public …… 阅读全文
using System;using System.Collections.Generic;using System.Linq;using System.Text;//接口的声明案例/*namespace Interface_test{ interface Ifunction1 //接口1 { int sum(int i, int j); …… 阅读全文
//读文件/*using System.IO;using System;using System.Windows.Forms; //包含MessageBox();函数public class readFileExample{ public static void Main() { //定义一个一维数组,并初始化数据 byte[] bu …… 阅读全文