Metziop

Untitled

Jul 27th, 2022
1,004
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 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 Ubar4.Modelo
  8. {
  9.     public class user
  10.     {
  11.         //atributos de la clase
  12.         private int userId;
  13.         private string userName;
  14.  
  15.         //método constructor
  16.         public user()
  17.         {
  18.             this.userId = 0;
  19.             this.userName = "";
  20.         }
  21.         //metodos de acceso a la clase (setters y getters)
  22.         public int UserId { get => userId; set => userId = value; }
  23.         public string UserName { get => userName; set => userName = value; }
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment