Can someone tell me why I'm getting the error Cannot find symbol when I'm creating an object? in bank_account Christine = new bank_account();
public class BankAccountTester
{
public static void main (String []args)
{
bank_account Christine = new bank_account();
Christine.deposit(10000);
Christine.withdraw(2000);
System.out.println(Christine.getBalance());
}
}
this is my class
public class bank_account{
private double balance;
public bank_account()
{
balance = 0;
}
public bank_account (double initialBalance)
{
balance = initialBalance;
}
public void deposit(double amount)
{
balance = balance + amount;
}
public void withdraw (double amount)
{
balance = balance - amount;
}
public double getBalance()
{
return balance;
}
}