That's a tough one and goes against what I stated previously. If this were my program, I wouldn't have this method, but instead would have alternative Strings that the user could enter in to retrieve...
Type: Posts; User: curmudgeon
That's a tough one and goes against what I stated previously. If this were my program, I wouldn't have this method, but instead would have alternative Strings that the user could enter in to retrieve...
We all can help, but you'll need to show us your attempts first, same as before.
Yes, but this is not the Profile class's responsibility. All Profile is responsible for is holding the state of the user's profile and having simple methods -- getter and setter methods and whatnot...
Methods have certain behaviors. For instance, changePass will accept a String (for a weak password program) and use that String to change the password property -- that's its behavior.
No, I ...
Not so much disrespect, but rather not posting this will greatly decrease your chances of getting help.
OK, regarding the methods,
changePass()
authenticate()
forgotPass()
What do you...
The link is flagged by my anti-virus as being malicious. Regardless,
all links carry the risk for being malicious, and many here won't click on them for that reason.
You're the one asking help...
If you're going to post information, post it as text here in the forum, not as a link.
The code for the methods will all depend on the behaviors that these methods should have. So I think you'll need to tell and show more for us to better understand the problem and be able to help you.
That sounds like a good plan. Again, good luck!
attributes are almost always private, occasionally protected and rarely public. Make them private.
getters and setters are almost always public.
:rolleyes: uh oh, you'd better read up on...