fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. InvitationalSurvey iservey = new InvitationalSurvey();
  9. iservey.DoSomething(1, 1, 1);
  10. iservey.DoSomething(1);
  11. }
  12. }
  13.  
  14. public abstract class BaseSurvey
  15. {
  16.  
  17. }
  18. public class InvitationalSurvey: BaseSurvey
  19. {
  20. public void DoSomething(int param1, int param2 = 0, int param3 = 0)
  21. {
  22. //I don't need param2 and param3 here
  23. Console.WriteLine(string.Format("{0},{1},{2}",param1, param2, param3));
  24. }
  25. }
Success #stdin #stdout 0.03s 33896KB
stdin
Standard input is empty
stdout
1,1,1
1,0,0