Advertisement
Guest User

Untitled

a guest
Mar 5th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace WindowsFormsApplication5
  8. {
  9. class User
  10. {
  11. string userName;
  12. string password;
  13.  
  14. public string UserName
  15. {
  16. get
  17. {
  18. return userName;
  19. }
  20.  
  21. set
  22. {
  23. userName = value;
  24. }
  25. }
  26.  
  27. public string Password
  28. {
  29. get
  30. {
  31. return password;
  32. }
  33.  
  34. set
  35. {
  36. password = value;
  37. }
  38. }
  39.  
  40. public override string ToString()
  41. {
  42. return userName + " - " + password;
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement