每個特性都采用具有Get和Set構造函數的這種格式
Public ReadOnly Property LineTotal() As Double
Get
Return _quantity * _price
End Get
這些加起來就是整個的Cartltem對象
Private _dateCreated As DateTime
Private _lastUpdate As DateTime
這兩個變量存儲創建WroxShoppingCart對象的時間和最近一次更新它的時間
Public Sub New()
_items = New List(Of CartItem)
_dateCreated = DateTime
[
From:http://tw.wingwit.com/Article/program/net/201311/15592.html