using System.Collections.Generic;
public class Bank : Customer
private static List<Customer> customer = new List<Customer>();
public static void Main()
Console.Write("\nSelect Operation: [0-3]\n" +
" \t1 - add customer account.\n" +
input = Convert.ToInt16(Console.ReadLine());
BankAccount(AddCustomer());
public static void BankAccount( Customer account)
List<Customer> accounts = customer;
Console.WriteLine(accounts.Count+" account created.");
public static string UserPrompt(string msg)
return Console.ReadLine();
public static List<string> MessagePrompt()
List<string> msg = new List<string>{
"Customer Name: ", "Customer Username: ","Customer Email: ", "Customer Password: ", "Customer AccountNumber: ", "Customer Account Balance: "
public static Customer AddCustomer()
Customer customer = new Customer();
List<string> props =new List<string>(){
customer.Name, customer.Username, customer.Email, customer.Password, customer.AccountNumber, customer.AccountBalance};
List<string> message = MessagePrompt();
for(var i=0; i<message.Count;)
var readLine = UserPrompt(message[i]);
private string accountNumber;
private string accountBalance;
private List<string> transactionHistory;
public string AccountNumber
get{ return accountNumber;}
set{ accountNumber =value;}
public string AccountBalance
get{ return accountBalance;}
set{ accountBalance =value;}
public List<string> TransactionHistory
get{ return transactionHistory;}
set{ transactionHistory =value;}