Example #1
0
    public void Execute()
    {
        CardboardBoxes boxes = new CardboardBoxes();

        boxes.Add(new CardboardBox());
        boxes.Add(new CardboardBox());
        boxes.Add(new CardboardBox());

        foreach (CardboardBox box in boxes)
        {
            Console.WriteLine("hello world");
        }
    }
    public void Execute()
    {
        CardboardBoxes boxes = new CardboardBoxes();

        boxes.Add(new CardboardBox());
        boxes.Add(new CardboardBox());
        boxes.Add(new CardboardBox());

        foreach (CardboardBox box in boxes)
        {
            Console.WriteLine("Length X" + box._lengthX + "Y:" + box._lengthY);
        }
    }