fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. namespace program
  5. {
  6. class X
  7. {
  8. string nazwa;
  9.  
  10. public X(string n)
  11. {
  12. nazwa = n;
  13. }
  14.  
  15. public void display()
  16. {
  17. Console.WriteLine("{0}", this.nazwa);
  18. }
  19. }
  20.  
  21. class program
  22. {
  23. static void Main(string[] args)
  24. {
  25. X x = new X("kotek");
  26. x.display();
  27. }
  28. }
  29. }
Success #stdin #stdout 0.02s 34752KB
stdin
Standard input is empty
stdout
kotek