static void Main(string[] args) { Console.Write("Name: "); string name = Console.ReadLine(); Console.Write("Age: "); int age = Convert.ToInt32(Console.ReadLine()); Chicken chicken = new Chicken(name, age); chicken.Display(); }
static void Main(string[] args) { Console.Write("Name: "); string name = Console.ReadLine(); Console.Write("Age: "); int age = Convert.ToInt32(Console.ReadLine()); Chicken chicken = new Chicken(name, age); chicken.Display(); }