static void Main(string[] args) { Rose redRose = new Rose(); redRose.Color = "red"; redRose.Name = "Jack"; redRose.Thorny = "really thorny"; redRose.Fragrant = "heavenly"; redRose.WaterSchedule = "once a day"; redRose.Cost = 45; DeathThorn blackDeathThorn = new DeathThorn(); blackDeathThorn.Name = "Happy"; blackDeathThorn.Cost = 100; blackDeathThorn.PedalCount = 5; blackDeathThorn.StemLength = 20; blackDeathThorn.Location = "Skyrim"; PoisonBloom pinkPoisonBloom = new PoisonBloom(); Tulip yellowTulip = new Tulip(); FlowerShop myFlowerShop = new FlowerShop(); }
public void AddFlowerToFlowerCollection(string className, int count, string flowername) { Flower fl; for (int i = 0; i < count; i++) { switch (className) { case "Astra": fl = new Astra(flowername); break; case "Tulip": fl = new Tulip(flowername); break; case "Violet": fl = new Violet(flowername); break; default: throw new Exception("Flower type not found."); } this.FlowerCollection.Add(fl); } }
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) { 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(); }
static void Main(string[] args) { var redTulip = new Tulip() { Color = "red" }; Console.WriteLine(redTulip.Describe()); Flowershop myShop = new Flowershop(); }
static void Main(string[] args) { Rose myRose = new Rose(); myRose.Color = "Orange"; myRose.Cost = 6000; myRose.Type = "Not important"; myRose.WaterSchedule = "MWF"; myRose.Thorny = true; myRose.Fragrant = true; myRose.Name = "David"; Orchid myOrchid = new Orchid(); myRose.Color = "Orange"; myRose.Cost = 6000; myRose.Type = "Not important"; myRose.WaterSchedule = "MWF"; myRose.Thorny = true; myRose.Fragrant = true; myRose.Name = "David"; Lily myLily = new Lily(); myRose.Color = "Orange"; myRose.Cost = 6000; myRose.Type = "Not important"; myRose.WaterSchedule = "MWF"; myRose.Thorny = true; myRose.Fragrant = true; myRose.Name = "David"; Tulip myTulip = new Tulip(); myTulip.Color = "Orange"; myTulip.Cost = 6000; myTulip.Type = "Not important"; myTulip.WaterSchedule = "MWF"; myRose.Thorny = true; myRose.Fragrant = true; myRose.Name = "David"; }
static void Main(string[] args) { Rose Rose = new Rose() { Name = "Rosey", StemLength = 5, Type = "Rose Bush", Cost = 10.00, Water_Schedule = "2x a week", Thorny = true, Fragrant = "Fresh" }; Irises Irises = new Irises() { Color = "Blue", Name = "Irie", Type = "Flower", Cost = 5.00, Water_Schedule = "1x a week", Thorny = false, Fragrant = "Minty" }; SunFlower Sunflower = new SunFlower() { Color = "Yellow", Name = "Sunny", Type = "Flower", Cost = 3.00, Water_Schedule = "1x a week", Thorny = false, Fragrant = "Fresh" }; Tulip Tulip = new Tulip() { Name = "Tully", StemLength = 5, Type = "Flower", Cost = 3.00, Water_Schedule = "1x a week", Thorny = false, Fragrant = "Fresh" }; SnapDragon snapDragon = new SnapDragon() { Name = "Tully", StemLength = 5, Color = "Green", Type = "Flower", Cost = 3.00, Water_Schedule = "1x a week", Thorny = false, Fragrant = "Fresh" }; Rose redRose = new Rose(); SunFlower sunFlower = new SunFlower(); Irises irises = new Irises(); Tulip tulip = new Tulip(); SnapDragon SnapDragon = new SnapDragon(); }