public BankAccount(double dollar)
if (dollar < 0) throw new Exception("YOUR IN DEBT!!!!!!!!!!!!!!");
public void TransferTo(double money, BankAccount other)
if (money < 0) throw new Exception("Money < 0");
if (money > Dollars) throw new Exception("You cannot withdraw this much");
public void TransferFrom(double money, BankAccount other)
if (money < 0) throw new Exception("Money < 0");
if (money > other.Dollars) throw new Exception("You cannot withdraw this much");
public double Dollars { get; set; }
static void Main(string[] args)
var jojobalance = new Bank(213);
jojobalance.giveAwayMoney(2, 2);
var bobsbalance = new Bank(213);
bobsbalance.Addmoney(213, 213);