public static void DefBouquet() { Bouquet bouquet1 = new Bouquet(); // вызов одноименных методов bouquet1.Note(); ((IPaper)bouquet1).Note(); bouquet1.Color = "Красный"; bouquet1.Price = 17.4F; bouquet1.SeNumberOfFlowers(ref bouquet1.flowers, 3); Console.WriteLine("--------------------------------------"); Console.WriteLine($"Цвет обертки букета: {bouquet1.Color}\nЦена букета: {bouquet1.Price}\n"); int counter = 1; foreach (var flwr in bouquet1.flowers) { Console.WriteLine($"Цветок {counter++}\nНазвание цветка: {flwr.Name}\nРазмер цветка: {flwr.Size}\n"); } Console.WriteLine("--------------------------------------"); //Bouquet bouquet2 = new Bouquet(); //bouquet2.Color = "Красный"; //bouquet2.Price = 17.4F; //bouquet2.SeNumberOfFlowers(ref bouquet2.flowers, 1); }