using System; using System.Numerics; namespace HelloApp1 { class Cat { public Cat() {} public Cat(string name, int age, string hair, string color, int weight) { this.name = name; this.age = age; this.hair = hair; this.color = color; this.weight = weight; } public string name; public int age; public string hair; public string color; public int weight; public void GetInfo() => Console.WriteLine( $"Имя: {name} возраст: {age} пушистость: {hair} цвет: {color} вес: {weight}кг"); } class Program { static void Main(string[] args) { Cat Pshik = new Cat() { name = "Пшик", age = 3, hair = "пушистый", color = "серый", weight = 5 }; Pshik.GetInfo(); Cat Kote = new Cat("Котэ", 9, "гладкошёрстный", "чёрно-белый", 5); Kote.GetInfo(); } } }