public string AnotherUsefulFunction(IAbstractTable collaboratorTable)
    {
        var result = collaboratorTable.AnotherUsefulFunction();

        return($"The result of the {GetType().Name} collaborating with the ({result})");
    }
 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)}");
 }
Ejemplo n.º 4
0
 public string AnotherUsefulFunction(IAbstractChair chair, IAbstractTable table)
 {
     return($"{GetType().Name} produces other result:\n{chair.AnotherUsefulFunction(table)}");
 }