public static class Program { static void Main(string[] args) { #region Assessment A // the below class declarations looks like a 1st year student developed it // IMPROVE THE ARCHITECTURE Human human = new Human(); human.Name = "John"; human.Age = 35; human.Gender = "M"; Console.WriteLine(human.GetDetails()); Dog dog = new Dog(); dog.Name = "Walter"; dog.Age = 7; dog.Food = "Epol"; Console.WriteLine(dog.GetDetails()); Cat cat = new Cat(); cat.Name = "Snowball"; cat.Age = 35; cat.Food = "Whiskers"; Console.WriteLine(cat.GetDetails()); #endregion } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)