View Single Post
  #1 (permalink)  
Old 01-03-2008, 06:18 PM
kdeighan kdeighan is offline
Member
 
Join Date: Jan 2008
Posts: 3
kdeighan is on a distinguished road
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.
Reply With Quote
Sponsored Links