public Software(int item, string serialNumber, EnumProdType type, string titname, string author, Double price, Date ed_pubDate, int stock, string capacity, EnumSoftType softype) : base(item, serialNumber, type, titname, author, price, ed_pubDate, stock) { this.capacity = capacity; this.softype = softype; }
public Book(int item, string serialNumber, EnumProdType type, string titname, string author, Double price, Date ed_pubDate, int stock, int numPages, EnumBookGenre genre) : base(item, serialNumber, type, titname, author, price, ed_pubDate, stock) { this.numPages = numPages; this.genre = genre; }
// This Constructor is used for FileFandler public Product(String item, String serialNumber, String type, String titname, String author, String price, Date ed_pubDate, String stock) { this.item = Convert.ToInt16(item); this.serialNumber = serialNumber; this.type = (EnumProdType)Enum.Parse(typeof(EnumProdType), type); this.titname = titname; this.author = author; this.price = Convert.ToDouble(price); this.ed_pubDate = ed_pubDate; this.stock = Convert.ToInt16(stock); }
public Product(int item, string serialNumber, EnumProdType type, string titname, string author, Double price, Date ed_pubDate, int stock) { this.item = item; this.serialNumber = serialNumber; this.type = type; this.titname = titname; this.author = author; this.price = price; this.ed_pubDate = ed_pubDate; this.stock = stock; }