Ejemplo n.º 1
0
 // This Constructor is used for FileFandler
 public Book(String item, String serialNumber, String type,
             String titname, String author, String price, Date ed_pubDate, String stock,
             String numPages, String genre) :
     base(item, serialNumber, type, titname, author, price,
          ed_pubDate, stock)
 {
     this.numPages = Convert.ToInt16(numPages);
     this.genre    = (EnumBookGenre)Enum.Parse(typeof(EnumBookGenre), genre);
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 public Book(int numPages, EnumBookGenre genre)
 {
     this.numPages = numPages;
     this.genre    = genre;
 }