亚洲精品亚洲人成在线观看麻豆,在线欧美视频一区,亚洲国产精品一区二区动图,色综合久久丁香婷婷

              當(dāng)前位置:首頁(yè) > IT技術(shù) > Windows編程 > 正文

              apiCode/1/1.1/1.1.1
              2021-08-07 12:13:40

              public abstract class myClass
              {
              	private string id = "";
              	private string name = "";
              	public string ID
              	{
              		get{ return id };
              		set{ id = value};
              		
              	}
              	
              	public string Name
              	{
              		get{ return name};
              		set{ name = value};
              	}
              	
              	public abstract void ShowInfo();
              }
              
              public class DriverClass:myClass
              {
              	public override void ShowInfo()
              {
              	Console.WriteLine(ID+" "+Name);
              }
              }
              
              class Program
              {
              	static void Main(string[] args)
              	{
              		DriverClass driverClass = new DriverClass();
              
              		myClass myclass = driverClass;
              		myClass.ID = "BH";
              		myClass.Name = "MR"
              		
              		myClass.showInfo();
              		Console.ReadLine();
              	}
              }

              本文摘自 :https://blog.51cto.com/u

              開通會(huì)員,享受整站包年服務(wù)立即開通 >