Class1.cs 484 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace _04_1_Metody
  7. {
  8. public class Class1
  9. {
  10. public string S { get; set; }
  11. public DateTime d;
  12. public int[] t;
  13. public Class1()
  14. {
  15. S = "Dzień dobry";
  16. d = DateTime.Today;
  17. t = new int[] { 1, 2, 3 };
  18. }
  19. public Class1(string s, DateTime d, int[] t)
  20. {
  21. S = s;
  22. this.d = d;
  23. this.t = t;
  24. }
  25. }
  26. }