示例#1
0
        static void Main(string[] args)
        {
            Rose miniRose = new Rose();

            miniRose.Color    = "Pink";
            miniRose.Cost     = 1.50;
            miniRose.Fragrant = true;
            miniRose.Name     = "Mini Rose";
            miniRose.Thorny   = true;
            miniRose.Type     = "rose";
            miniRose.Water    = "weekly";

            Tulip yellowTulip = new Tulip();

            yellowTulip.Color    = "Yellow";
            yellowTulip.Cost     = 1.99;
            yellowTulip.Fragrant = false;
            yellowTulip.Name     = "Yellow Belly";
            yellowTulip.Thorny   = false;
            yellowTulip.Type     = "tulip";
            yellowTulip.Water    = "daily";

            Carnation pinkCarnation = new Carnation();
            Sunflower sunflower     = new Sunflower();

            FlowerShop      myFlowerShop = new FlowerShop();
            List <IGetWell> arrangement  = myFlowerShop.MakeGetWellArr();
        }
        static void Main(string[] args)
        {
            var Bobby = new Rose();
            var Dandy = new Dandelion();
            var Sunny = new Sunflower();
            var Vi    = new Violet();

            FlowerShop       MacsFlowerShop = new FlowerShop();
            List <IBirthDay> Arrangement    = MacsFlowerShop.MakeBirthDayArrangement();
        }
示例#3
0
        static void Main(string[] args)
        {
            Rose      redRose   = new Rose();
            Sunflower sunFlower = new Sunflower();
            Tulip     tulip     = new Tulip();
            Lilly     lilly     = new Lilly();

            FlowerShop       MacsFlowerShop = new FlowerShop();
            List <IBirthday> Arrangement    = MacsFlowerShop.MakeBirthdayArrangement();
        }