Country.cs 693 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace TestCode
  6. {
  7. public class Country
  8. {
  9. public Country(int id, string name, string capital, double population)
  10. {
  11. ID = id;
  12. Name = name;
  13. Capital = capital;
  14. Population = population;
  15. }
  16. public int ID
  17. {
  18. get;
  19. set;
  20. }
  21. public string Name
  22. {
  23. get;
  24. set;
  25. }
  26. public string Capital
  27. {
  28. get;
  29. set;
  30. }
  31. public double Population
  32. {
  33. get;
  34. set;
  35. }
  36. }
  37. }