Advertisement
svetlyoek

Untitled

Jun 10th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1.  
  2. namespace Repository
  3. {
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Text;
  7.  
  8. public class Person
  9. {
  10. private string name;
  11.  
  12. private int age;
  13.  
  14. private DateTime birthDate;
  15.  
  16. public Person(string name, int age, DateTime birthDate)
  17. {
  18. this.Name = name;
  19. this.Age = age;
  20. this.BirthDate = birthDate;
  21. }
  22.  
  23. public string Name
  24. {
  25. get
  26. {
  27. return this.name;
  28. }
  29. set
  30. {
  31. this.name = value;
  32. }
  33. }
  34.  
  35. public int Age
  36. {
  37. get
  38. {
  39. return this.age;
  40. }
  41. set
  42. {
  43. this.age = value;
  44. }
  45. }
  46.  
  47. public DateTime BirthDate
  48. {
  49. get
  50. {
  51. return this.birthDate;
  52. }
  53. set
  54. {
  55. this.birthDate = value;
  56. }
  57. }
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement