所有類默認繼承於 System.Object(或叫 Object):using System;class MyClass1{}class MyCl
繼承:using System;class Parent{ public void Msg() { Console.WriteLine(&qu
構造函數與析構函數:using System;class MyClass{ private int FNum; public int Nu
抽象類不能直接實例化:using System;abstract class MyClass{}class Program{ static v