Advertisement
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 ConsoleApplication3
- {
- class User
- {
- private String username;
- private string password;
- private int bankAccount;
- private double balance;
- public string Username
- {
- get { return username; }
- set { username = value; }
- }
- public string Password
- {
- get { return password; }
- set { password = value; }
- }
- public int BankAccount
- {
- get { return bankAccount; }
- set { bankAccount = value; }
- }
- public double Balance
- {
- get { return balance; }
- set { balance = value; }
- }
- public User(string username)
- {
- this.username = username;
- }
- public User(string username, string password) : this(username)
- {
- this.password = password;
- }
- public User(string username, string password, int bankAccount) : this(username, password)
- {
- this.bankAccount = bankAccount;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement