Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Ubar4.Modelo
- {
- public class user
- {
- //atributos de la clase
- private int userId;
- private string userName;
- //método constructor
- public user()
- {
- this.userId = 0;
- this.userName = "";
- }
- //metodos de acceso a la clase (setters y getters)
- public int UserId { get => userId; set => userId = value; }
- public string UserName { get => userName; set => userName = value; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment