static void Main(string[] args) { //instantiating the objects Donut sierraDonut = new Donut(); Donut alyssaDonut = new Donut(); Donut evanDonut = new Donut(); //setting property values - SD Prework 3.11 Properties sierraDonut.filling = "Cherry"; sierraDonut.Price = 3; sierraDonut.Type = "normal"; sierraDonut.isSpecial = true; alyssaDonut.filling = "custard"; alyssaDonut.Price = 4; alyssaDonut.Type = "large"; alyssaDonut.isSpecial = false; evanDonut.filling = "none"; evanDonut.Price = 2; evanDonut.Type = "normal"; evanDonut.isSpecial = true; Console.WriteLine(evanDonut.filling); }
static void Main(string[] args) { //1 //2 //3 //4 Donut dougDonut = new Donut(); Donut chrisDonut = new Donut(); Donut nickDonut = new Donut(); //setting property values //1 //2 //3 dougDonut.Filling = "cherry"; dougDonut.Price = 3; dougDonut.Type = "normal"; dougDonut.IsSpecial = true; chrisDonut.Filling = "none"; chrisDonut.Price = 2; chrisDonut.Type = "small"; chrisDonut.IsSpecial = false; nickDonut.Filling = "chocolate"; nickDonut.Price = 3; nickDonut.Type = "normal"; nickDonut.IsSpecial = true; Console.WriteLine(nickDonut.Filling); }
static void Main(string[] args) { Donut dougDonut = new Donut(); Donut chrisDonut = new Donut(); Donut nickDonut = new Donut(); //setting property values //1 //2 //3 dougDonut.Filling = "cherry"; dougDonut.Price = 3; dougDonut.Type = "normal"; dougDonut.IsSpecial = true; dougDonut.Topping = "icing & sprinkles"; chrisDonut.Filling = "none"; chrisDonut.Price = 2; chrisDonut.Type = "small"; chrisDonut.IsSpecial = false; chrisDonut.Topping = "cinnamon"; nickDonut.Filling = "chocolate"; nickDonut.Price = 3; nickDonut.Type = "normal"; nickDonut.IsSpecial = true; nickDonut.Topping = "powdered sugar"; Console.WriteLine(nickDonut.Filling); Console.WriteLine(dougDonut.Topping); Console.ReadLine(); }
static void Main(string[] args) { Donut dougDonut = new Donut(); Donut chrisDonut = new Donut(); Donut nickDonut = new Donut(); dougDonut.Filling = "cherry"; dougDonut.Price = 3; dougDonut.Type = "normal"; dougDonut.IsSpecial = true; chrisDonut.Filling = "none"; chrisDonut.Price = 2; chrisDonut.Type = "small"; chrisDonut.IsSpecial = false; nickDonut.Filling = "chocolate"; nickDonut.Price = 3; nickDonut.Type = "normal"; nickDonut.IsSpecial = true; Console.WriteLine(nickDonut.Filling); //Console.WriteLine(nickDonut); }
static void Main(string[] args) { //Instantiating the objects Donut dougDonut = new Donut(); Donut chrisDonut = new Donut(); Donut nickDonut = new Donut(); //setting property values dougDonut.Filling = "none"; dougDonut.Price = 3; dougDonut.Type = "normal"; dougDonut.isSpecial = true; chrisDonut.Filling = "none"; chrisDonut.Price = 2; chrisDonut.Type = "small"; chrisDonut.isSpecial = false; nickDonut.Filling = "chocolate"; nickDonut.Price = 3; nickDonut.Type = "normal"; nickDonut.isSpecial = true; Console.WriteLine(nickDonut.Filling); }