public string AnotherUsefulFunction(IAbstractChair chair, IAbstractTable table)
 {
     return($"This a perfect combination of furniture:\n{GetType().Name} + \n{chair.AnotherUsefulFunction(table)}");
 }
 public string AnotherUsefulFunction(IAbstractChair chair, IAbstractTable table)
 {
     return
         ($"Here is the result of collaboration of {GetType().Name} with other entities:\n{chair.AnotherUsefulFunction(table)}");
 }
Example #3
0
 public string AnotherUsefulFunction(IAbstractChair chair, IAbstractTable table)
 {
     return($"{GetType().Name} produces other result:\n{chair.AnotherUsefulFunction(table)}");
 }