Guest User

Untitled

a guest
Feb 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace ClassLibrary1
  6. {
  7. public class User
  8. {
  9. private String userName;
  10.  
  11. public User(String userName)
  12. {
  13. this.userName = userName;
  14. }
  15.  
  16. public String UserName
  17. {
  18. get { return userName; }
  19. }
  20.  
  21. public override string ToString()
  22. {
  23. return "Usuario: " + userName;
  24. }
  25.  
  26. }
  27. }
Add Comment
Please, Sign In to add comment