Search:

Type: Posts; User: javapenguin

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    24,916

    Re: Bank Account Program.

    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.
  2. Replies
    10
    Views
    24,916

    Re: Bank Account Program.

    Perhaps if your BankAccount class had a method called setOwner()


    public void setOwner(String owner2)
    {
    owner = owner2;
    }


    it might work.
  3. Replies
    10
    Views
    24,916

    Re: Bank Account Program.

    myFormat = new DecimalFormat("#.00");

    What's that doing?

    Could you just use %.2d or something?
  4. Replies
    10
    Views
    24,916

    Re: Bank Account Program.

    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...
  5. Replies
    10
    Views
    24,916

    Re: Bank Account Program.

    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...
Results 1 to 5 of 5