Question: Create the JAVA code file, and attach, for the described class: Create a class called Member. This class will hold the information for an online
Create the JAVA code file, and attach, for the described class: Create a class called Member. This class will hold the information for an online catalog shopping club member. The constructor will create and display a Frame to gather the new member information. The information to gather (which will also be the attributes of the Member class) are: First name Last name Street Address (for shipping) City of residence State Zip code Preferred contact phone number Email address User signin ID Password The Frame will contain a button. When the user clicks that button, the data is saved into the class. A unique ID will also be created and placed into the class. When all the data is saved, the Frame closes. The Member class will have the following accessors: getName : This obtains the FULL name, combining the first and last names getLabel : Returns a String object containing the entire address as it would appear on a shipping label (street address on one line, then city+state+zip on the line below) getZip getPhone getEmail The Member class will have the following modifiers: setEmail setPhone Other methods contained in the Member class: changePwd : This method is used to change the users password. The current password is passed as the argument. The method to check if that password is correct. If not, an error will be printed. If so, the method will ask for a new password. It will then ask the user to verify the password. If the 2nd input is not the same as the first, return an error message. If the two inputs match, then change the password and print the message, Password changed login : This method ASKS for the userid and password (these are NOT parameters to the method!). If neither match, display an error message. If both match, display the message, Approved
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
