大家好,我是小百,我来为大家解答以上问题。partnumber是什么意思,partnumber很多人还不知道,现在让我们一起来看看吧!
1、public class Invoice { string partNumber; public string PartNumber { get { return partNumber; } set { partNumber = value; } } string partName; public string PartName { get { return partName; } set { partName = value; } } int partNum; public int PartNum { get { return partNum; } set { if (value < 0) return; else partNum = value; } } decimal partPrice; public decimal PartPrice { get { return partPrice; } set { if (value < 0) return; else partPrice = value; } } public Invoice() { partNumber = ""; partName = ""; partNum = 0; partPrice = 0; } public decimal getInvoiceAmount() { return partNum * partPrice; } }。
本文到此讲解完毕了,希望对大家有帮助。