fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var f = new Foo("Bob");
  8. f.DoIt();
  9. // your code goes here
  10. }
  11. }
  12.  
  13. public class Foo
  14. {
  15. private string _s;
  16. public Foo(string s)
  17. {
  18. _s = s;
  19. }
  20. public void DoIt()
  21. {
  22. Console.WriteLine("Hi " + _s);
  23. }
  24. }
Success #stdin #stdout 0.02s 15896KB
stdin
Standard input is empty
stdout
Hi Bob