Results 1 to 2 of 2
- 01-03-2008, 04:18 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 3
- Rep Power
- 0
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.
- 01-03-2008, 04:52 PM #2
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
-
what is the Priority for execution of Interface class and a Abstract class
By Santoshbk in forum Advanced JavaReplies: 0Last Post: 04-02-2008, 07:04 AM -
Accessing inner class from outer class (an example)
By Java Tip in forum Java TipReplies: 0Last Post: 02-17-2008, 09:03 AM -
An example of accessing outer class from inner class
By Java Tip in forum Java TipReplies: 0Last Post: 02-17-2008, 09:01 AM -
Inner class accessing outer class
By Java Tip in forum Java TipReplies: 0Last Post: 02-17-2008, 08:59 AM -
Accessing one class from another class through swing
By kbyrne in forum AWT / SwingReplies: 5Last Post: 01-03-2008, 07:54 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks