Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     workerbeeJob.SelectedIndex = 0;
     Worker[] workers = new Worker[4];
     workers[0] = new Worker(new string[] { "Nectar collector", "Honey manufactoring" }, 175);
     workers[1] = new Worker(new string[] { "Egg care", "Baby bee tutoring" }, 114);
     workers[2] = new Worker(new string[] { "Hive maintenance", "Sting patrol" }, 149);
     workers[3] = new Worker(new string[] { "Nectar collector", "Honey manufactoring", "Egg care", "Baby bee tutoring", "Hive maintenance", "Sting patrol" }, 155);
     queen = new Queen(workers, 275);
     IStingPatrol george = fred;
 }
Exemplo n.º 2
0
 public Queen(Worker[] workers, double weightMg) : base(weightMg)
 {
     this.workers = workers;
 }