diff --git a/ChristmasWithTypes/Christmas.cs b/ChristmasWithTypes/Christmas.cs index e22b5c0..aad79c7 100644 --- a/ChristmasWithTypes/Christmas.cs +++ b/ChristmasWithTypes/Christmas.cs @@ -5,10 +5,10 @@ public class Christmas { public string[] Presents; public string Santa { get; set; } - public int TreeHeight { get; set; } //TODO Make the Height property nullable + public int? TreeHeight { get; set; } //TODO Make the Height property nullable //TODO Make the property, "Day", type enum - public enum Day { /*Fill out the days of the week*/ }; + public enum Day { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }; } } diff --git a/ChristmasWithTypes/Program.cs b/ChristmasWithTypes/Program.cs index 9c17ce9..5525d64 100644 --- a/ChristmasWithTypes/Program.cs +++ b/ChristmasWithTypes/Program.cs @@ -11,13 +11,13 @@ static void Main(string[] args) var xmasDay = Christmas.Day.Thursday; //TODO set Santa's name to Kris Kringle - xmas.Santa = null; + xmas.Santa = "Kris Kringle"; //TODO Insert 3 presents you would like for xmas. They must be strings - xmas.Presents = new string[3]{ }; + xmas.Presents = new string[3]{"New Laptop", "Diamond DA40", "Siberian Husky Puppy" }; //TODO Set the TreeHeight to 10 - xmas.TreeHeight = null; + xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n");