Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class User
- {
- public User(string username, string password, int facNumber, int role, DateTime validUntil)
- {
- Username = username;
- Password = password;
- FacNumber = facNumber;
- Role = role;
- ValidUntil = validUntil;
- }
- public string Username { get; set; }
- public string Password { get; set; }
- public int FacNumber { get; set; }
- public int Role { get; set; }
- public DateTime ValidUntil { get; set; }
- public override string ToString()
- {
- return $"{this.Username} has a password: {this.Password}. The person has fac number: {this.FacNumber}. Their role is {this.Role}.Is valid until {this.ValidUntil.Year}th year.";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement