Exemplo n.º 1
0
        public static void Main()
        {
            Plecak plecak = new Plecak(10, 50, 50);

            plecak.GenerateItems();
            plecak.GatherItems();
        }
Exemplo n.º 2
0
 public bool Equals(Plecak obj)
 {
     if (obj.itemList == this.itemList && obj.valueMax == this.valueMax && obj.weightMax == this.weightMax)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }