static void Main(string[] args) { Donut KennDonut = new Donut(); Donut PaulDonut = new Donut(); Donut JayDonut = new Donut(); KennDonut.Filling = "Strawberry.Jelly"; KennDonut.Price = 0; KennDonut.Type = "Jelly"; KennDonut.IsSpecial = false; PaulDonut.Filling = "Cherry Jelly"; PaulDonut.Price = 7.99M; PaulDonut.Type = "Jelly"; PaulDonut.IsSpecial = true; JayDonut.Filling = "Creme"; JayDonut.Price = 3.50M; JayDonut.Type = "AngelCreme"; JayDonut.IsSpecial = true; Console.WriteLine(PaulDonut); Console.WriteLine(PaulDonut.Filling); Console.ReadLine(); }
static void Main(string[] args) { Donut jellyDonut = new Donut(); jellyDonut.Filling = "Cherry Jelly"; jellyDonut.Price = 7.99m; jellyDonut.Type = "Jelly"; jellyDonut.IsSpecial = true; }
static void Main(string[] args) { Donut PaulDount = new Donut(); Donut KennDonut = new Donut(); KennDonut.Filling = "Strawberry Jelly"; KennDonut.Price = 0; KennDonut.Type = "Jelly"; KennDonut.IsSpecial = false; PaulDount.Filling = "Cherry Jelly"; PaulDount.Price = 7.99M; PaulDount.Type = "Jelly"; PaulDount.IsSpecial = true; Console.WriteLine(PaulDount); Console.WriteLine(PaulDount.Filling); }
static void Main(string[] args) { Donut PaulDonut = new Donut(); Donut KennDonut = new Donut(); Donut JayDonut = new Donut(); PaulDonut.Filling = "Cherry Jelly"; PaulDonut.Price = 7.99M; PaulDonut.Type = "Jelly"; PaulDonut.IsSpecial = true; KennDonut.Filling = "Strawberry Jelly"; KennDonut.Price = 0; KennDonut.Type = "Jelly"; KennDonut.IsSpecial = false; JayDonut.Filling = "Creme'"; JayDonut.Price = 3.50M; JayDonut.Type = "AngelCreme"; JayDonut.IsSpecial = true; }