fork download
  1. using System;
  2.  
  3. class OknoGlowne
  4. {
  5. private int parametr;
  6.  
  7. public OknoGlowne(int parametr)
  8. {
  9. this.parametr = parametr;
  10. }
  11.  
  12. public void PokazParametr()
  13. {
  14. Console.WriteLine(parametr);
  15. }
  16. }
  17.  
  18. public class Test
  19. {
  20. public static void Main()
  21. {
  22. int parametrZMySQLa = 14;
  23.  
  24. var okno = new OknoGlowne(parametrZMySQLa);
  25. okno.PokazParametr();
  26. }
  27. }
Success #stdin #stdout 0.01s 14588KB
stdin
Standard input is empty
stdout
14