Yeah, well technically abstract means that you have at least one method that you don't define in that class and leave it for subclasses to define.
Type: Posts; User: javapenguin
Yeah, well technically abstract means that you have at least one method that you don't define in that class and leave it for subclasses to define.
Perhaps if your BankAccount class had a method called setOwner()
public void setOwner(String owner2)
{
owner = owner2;
}
it might work.
myFormat = new DecimalFormat("#.00");
What's that doing?
Could you just use %.2d or something?
public void deposit(double amount) {}
public boolean withdraw(double amount) {
return false;}
Your BankAccount class has a method called deposit that its subclasses all have and...
BankAccount isn't abstract even though you've labeled it as such. It needs at least one abstract method.
You can have all other classes extend it directly or indirectly without having to make it...