構造函數主要用來初始化對象
public class A
{
public int Number
public string Word
}
//在Test類中實例化
public class Test
{
static void Main()
{
A a = new A()
Console
Console
}
}
輸出的結果是
Number =
Word =
From:http://tw.wingwit.com/Article/program/ASP/201311/21671.html