Exemple #1
0
 /**
  *\brief A function to fill the attributes of magazine
  *\param attributes: Attributes of the magazine
  */
 public void Fill(object[] attributes)
 {
     Id    = (int)attributes[0];
     Name  = attributes[1].ToString();
     Price = (double)attributes[2];
     Issue = attributes[3].ToString();
     Type  = GetType(attributes[4].ToString());
 }
 public Magazine(string name, int id, double price, string issue, magazineType type) : base(name, id, price)
 {
     Issue = issue;
     Type  = type;
 }