Results 1 to 2 of 2
  1. #1
    kdeighan is offline Member
    Join Date
    Jan 2008
    Posts
    3
    Rep Power
    0

    Default help with PasswordProtector class

    MyBank is the client program, written below and it can't be modified; the program must run from the original version of MyBank.

    A new class, PasswordProtector, must be written to accompany the class BankAccount and its subclasses SavingsAccount & CheckingAccount.

    The PasswordProtector class stores a password and compares it to the password instance field. The user should be given 3 tries to enter a password. The boolean method checkBalance will return true if the user enters the password within 3 tries, false if not.

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Where's your attempt? I thought you said you needed help with a class, not help in terms of actually doing it for you!? Give it a shot, then come back here when you get stuck. Based on the info you've stated, it's pretty laid out for you. So what help do you need?
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

Similar Threads

  1. Replies: 0
    Last Post: 04-02-2008, 07:04 AM
  2. Replies: 0
    Last Post: 02-17-2008, 09:03 AM
  3. Replies: 0
    Last Post: 02-17-2008, 09:01 AM
  4. Inner class accessing outer class
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-17-2008, 08:59 AM
  5. Replies: 5
    Last Post: 01-03-2008, 07:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •