我不能讀這行代碼幫助我瞭解C#這個代碼
public Wine (decimal price, int year) : this (price) { Year = year; }
什麼:this
關鍵字在構造函數中做
public class Wine
{
public decimal Price;
public int Year;
public Wine (decimal price)
{
Price = price;
}
public Wine (decimal price, int year) : this (price)
{
Year = year;
}
}
[這是什麼冒號(:)是什麼意思?](http://stackoverflow.com/questions/1071148/what-does-this-colon-mean) – cHao