Use the following code. it will resolve the problem:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions ;
namespace bank
{
class account
{
private float balance;
public void Deposite(float amount)
{
balance += amount;
}
public void withdraw(float amount)
{
balance -= amount;
}
public void TransferFunds(account destination, float amount)
{
}
public float Balance
{
get
{
return balance;
}
}
public static void Main
{
account a1 = new account();
a1.Deposite(200.00f);
account a2 = new account();
a2.Deposite(15.00f);
a1.TransferFunds(a2, 100.00f);
account.Equals(250.00f, a2.balance);
account.Equals(100.00f, a1.balance);
}
}
}