Пример #1
0
 public string ChooseYourFurniture()
 {
     return($"Today I will purchase a {_chair.GetType().Name}, {_sofa.GetType().Name}, and {_coffeeTable.GetType().Name}.");
 }
Пример #2
0
 public override void Interact(Sofa sofa)
 {
     Console.WriteLine($"Interaction between: {GetType().Name} and {sofa.GetType().Name}");
 }