using System.Collections.Generic;
void GetRateOfInterest();
public abstract class Account
public readonly long Acc_num;
public static long Account_number=100200300400;
Account_number=Account_number+1;
public void OpenAccount()
Console.WriteLine("Opening of a New Account");
Console.WriteLine("Enter the name of the account holder:");
Acc_Name=Console.ReadLine();
Console.WriteLine("New Account Number : {0}",Acc_num);
Console.WriteLine("Account Name :{0}",Acc_Name);
public void RemoveAccount()
public void EditAccount()
Console.WriteLine("Do you wish to edit your account name: (Y/N)");
choice=char.Parse(Console.ReadLine());
Console.WriteLine("Enter your new account name :");
Acc_Name=Console.ReadLine();
Console.WriteLine("Account name Updated");
public void Deposit(int amt)
public void Withdrawal(int amt)
public void Check_balance()
Console.WriteLine("Remaining balance : {0}",Balance);
public virtual void GetAccountDetails()
SortedList<int,Savings_Account> Get= new SortedList<int,Savings_Account>();
Console.WriteLine("New Account Number :{0}",Acc_num);
Console.WriteLine("Account Name :{0}",Acc_Name);
Console.WriteLine("Remaining balance :{0}",Balance);
public class Savings_Account : Account, IROI , ITransaction
public int MaxAmountPerDay=20000;
public double rate = 0.15f;
public void GetRateOfInterest()
Interest = (Balance * rate)/100;
Console.WriteLine("Rate of Interest : {0}",Interest);
public void TransferAmount()
public static void Main()
SortedList<int,Savings_Account> SA= new SortedList<int,Savings_Account>();
Savings_Account account1= new Savings_Account();
Console.WriteLine("Welcome to Online Banking System");
Console.WriteLine("1.Open New Account");
Console.WriteLine("2.Check Balance");
Console.WriteLine("3.Deposit Money");
Console.WriteLine("4.Withdraw Money");
Console.WriteLine("5.Transfer Money");
Console.WriteLine("What you want to do ?");
ch=int.Parse(Console.ReadLine());
account1.Check_balance();
Console.WriteLine("Enter the amount you want to deposit");
int amt=int.Parse(Console.ReadLine());
account1.GetAccountDetails();