Skip to content

Instantly share code, notes, and snippets.

@bigworld12
Created March 31, 2017 15:54
Show Gist options
  • Save bigworld12/a706544d6c07c9a371e448daebd75fbd to your computer and use it in GitHub Desktop.
Save bigworld12/a706544d6c07c9a371e448daebd75fbd to your computer and use it in GitHub Desktop.
public class BankAccount
{
double balance;
public BankAccount()
{
balance = 0;
}
public void deposit(double amount)
{
balance += amount;
}
public void withdraw(double amount)
{
balance -= amount;
}
public void display()
{
Console.WriteLine(balance);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment