static void Main(string[] args) { Donut mattsDonut = new Donut(); mattsDonut.Type = "Glazed"; mattsDonut.HasCream = false; mattsDonut.Price = 10.99m; mattsDonut.Price = 200.89m; Console.WriteLine(mattsDonut.Type); mattsDonut.PrintDonutType(); SpeechSynthesizer speak = new SpeechSynthesizer(); speak.Speak("Why is Aaron here"); Console.ReadLine(); }
static void Main(string[] args) { //instantiate Donut mattsDonut = new Donut(); //Donut DQDonut = new Donut(); mattsDonut.Type = "glazed"; mattsDonut.HasCream = false; mattsDonut.Price = 10.99M; //DQDonut.Type = "cream"; //mattsDonut.PrintDonutType(); SpeechSynthesizer speak = new SpeechSynthesizer(); //speak.Speak(mattsDonut.Type); Donut dqDonut = new Donut(); dqDonut.Type = "Bald Ha Ha!"; speak.Speak("Ian is" + dqDonut.Type); Console.WriteLine(mattsDonut.Type); }