0% found this document useful (0 votes)
12 views1 page

User

Uploaded by

bozi.060607
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

User

Uploaded by

bozi.060607
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UserCredentialsImplementation
{
public abstract class User
{
private string username;
private string password;
private string email;
private string dateOfRegister;
private string typeOfUser;

protected User(string username, string password, string email, string


dateOfRegister, string typeOfUser)
{
this.Username = username;
this.Password = password;
this.Email = email;
this.DateOfRegister = dateOfRegister;
this.TypeOfUser = typeOfUser;
}

public string Username { get => username; set => username = value; }
public string Password { get => password; set => password = value; }
public string Email { get => email; set => email = value; }
public string DateOfRegister { get => dateOfRegister; set =>
dateOfRegister = value; }
public string TypeOfUser { get => typeOfUser; set => typeOfUser =
value; }

public override string ToString()


{
return string.Format("Username {0} , Password {1} , Email {2} ,
DateTimeRegister {3} , TypeOfUser {4}",
this.username,
this.password,
this.email,
this.dateOfRegister,
this.typeOfUser);
}
}
}

You might also like