1
public interface IFoo
{
    void Bar(int i, string j="");
}

public class Test: IFoo
{
    public void Bar(int i, string j="")
    {
        
    }
}

Question: in interface Ifoo is there a need to add optional parameter string j="" or one should go with string j? What is the best practice?

Tim Schmelter
  • 450,073
  • 74
  • 686
  • 939
vk01
  • 19
  • 1

0 Answers0