Question: person class: public class Person { private String firstName, lastName,SSN; private boolean access; public Person(){ } public Person(String f, String l, String ssn, boolean a)

person class:
public class Person { private String firstName, lastName,SSN; private boolean access; public Person(){ } public Person(String f, String l, String ssn, boolean a) { this.firstName=f; this.lastName=l; this.access=a; this.SSN=ssn; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getSSN() { return SSN; } public void setSSN(String sSN) { SSN = sSN; } public boolean isAccess() { return access; } public void setAccess(boolean access) { this.access = access; } }
Using the Person class from the previous part, design the following methods. (5 points each, 15 points total) d. toString0 2. equals(Person per) 3. Copy constructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
