Checking pin in display_balance() is pointless


#1

The security check of the pin in display_balance() is redundent because balance is a readable attribute. We can get at balance using:

checking_account = Account.new("Chris", 999999)
checking_account.balance
#Gives balance of account (bypasses pin check)

#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.