static void Main(string[] args) { /* * Animal animal = new Animal(); * animal.Sound(); */ Animal dog = new Dog(); dog.Sound(); Cat cat = new Cat(10); Console.WriteLine(cat.Age()); //overloading Console.WriteLine(cat.Age(10)); //using properties cat.Color = "black"; //set Console.WriteLine("The color of the cat is: " + cat.Color); //get }