Ejemplo n.º 1
0
 /**
  *\brief A function to fill the attributes of music CD
  *\param attributes: Attributes of the music CD
  */
 public void Fill(object[] attributes)
 {
     Id     = (int)attributes[0];
     Name   = attributes[1].ToString();
     Price  = (double)attributes[2];
     Singer = attributes[3].ToString();
     Type   = GetType(attributes[4].ToString());
 }
Ejemplo n.º 2
0
 /**
  *\brief Constructor of MusicCD class
  *\param id: Id of the music CD
  *\param name: Name of the music CD
  *\param price: Price of the music CD
  *\param singer: Name of the singer
  *\param type: Type of the music
  */
 public MusicCD(int id, string name, double price, string singer, musicType type)
     : base(id, name, price)
 {
     Singer = singer;
     Type   = type;
 }