Question: JAVA 4) Given: public class Employee Employee(String dob, String ssn, Address address) this.dob = dob; this.ssn = ssn: this.address = address; private String dob; private

 JAVA 4) Given: public class Employee Employee(String dob, String ssn, Address

JAVA

4) Given: public class Employee Employee(String dob, String ssn, Address address) this.dob = dob; this.ssn = ssn: this.address = address; private String dob; private String ssn; I/ date of birth Il social security number II Class that contains address information private Address address; publie boolean equals(Object object) t Two Employee objects are considered equal if their date of birth and social security numbers are the same. Implement the equals method above so that two Employee instances may be compared with the aforementioned criteria. if (empl.equals(emp2)) f System.out.println"empl and emp2 are the same!!" ; elset System.out.printine'empl and emp are different")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!