Making the if statements in wrong place:(

I instead of making a function(CheckPassword), I instead put the if statements inside of my one if statement(input == “1”). Therefore the whole time I tried to put in the password it would automatically read it as wrong. Considering how there was nothing in place. This way works much better as the constructor did it.

Privacy & Terms