Hi everyone, hope your all well....i was just wondering if someone could pleassseee tell me why this doesnt compile and if they could please correct ti for me??? thank you very much:
public class BankAccount
{
private static int accountCounter = 0;
private String ownerName;
private String accountNumber;
private double accountBalance;
private double overdraftLimit;
public String getOwnerName()
{
return ownerName;
}
public String getAccountNumber()
{
return accountNumber;
}
public double getBalance()
{
return accountBalance;
}
public double getOverdraftLimit()
{
return overdraftLimit;
}
Public BankAccount (string Name, int Balance, int Limit)
{
public string ownerName = Name;
public int accountBalance = Balance;
public int overdraftLimit = Limit;
}
accountCounter++;
this.accountNumber = "" + accountCounter;
}
}
Thnks again!!!