I am getting the following errors when I try to compile this: thoughts?
_______________________________________________________________________
BankAccount.java:11: <identifier> expected
public BankAccount(String, double, double)
^
BankAccount.java:25: ')' expected
public abstract void updateBalance();
^
2 errors
___________________________________________________________________
protected abstract class BankAccount
{
public BankAccount(String, double, double)
{
String accountID;
double balance;
double interest;
}
public String getAccountID()
{
return accountID;
}
public abstract void updateBalance();
//{
// return balance;
//}
public String toString()
{
String result;
result = ("\n" + "Account ID:\t\t" + accountID + "\n"
+ "Balance:\t\t" + "$" + balance + "\n"
+ "Interest:\t\t" + interest + "%" + "\n");
return result;
}
}