コード例 #1
0
 public Product()
 {
     iSBN          = 00;
     title         = "";
     unitprice     = 00;
     yearpublished = 0000;
     qOH           = 0000;
     catofB        = EnumCatofBooks.Undefined;
     catofS        = EnumCatofSoftware.Undefined;
 }
コード例 #2
0
        public Product(int iSBN, string title, double unitprice, int yearpublished, int qOH,
                       EnumCatofBooks catofB, int authorid, string authorfn, string authorln)
            : base(authorid, authorfn, authorln)

        {
            ISBN          = iSBN;
            Title         = title;
            Unitprice     = unitprice;
            Yearpublished = yearpublished;
            QOH           = qOH;
            CatofB        = catofB;
        }