Question: in java code /** * ITEC 3150 - ITEC 2140 and 2150 Review * * @author cjohns25 * */ public class Person { public String
in java code
/** * ITEC 3150 - ITEC 2140 and 2150 Review * * @author cjohns25 * */ public class Person { public String firstName; public String lastName; public int idNum; public String city; /** * Default constructor used to create empty attributes */
/** * Constructor * * @param firstName * @param lastName * @param idNum * @param city */
/* * Method: toString * @return a summary of a Person object that contains all attributes */
/** * Method: getFirstName * * @return the firstName */
/** * Method: setFirstName * * @param firstName the firstName to set */
/** * Method: getLastName * * @return the lastName */
/** * Method: setLastName * * @param lastName the lastName to set */
/** * Method: getIdNum * * @return the idNum */
/** * Method: setIdNum * * @param idNum the idNum to set */
/** * Method: getCity * * @return the city */
/** * Method: setCity * * @param city the city to set */
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
