Question: in java please heres the 9 . 1 4 example public class Employee { private final String firstName; private final String lastName; private final String

in java please heres the 9.14 example public class Employee {
private final String firstName;
private final String lastName;
private final String socialSecurityNumber;
public Employee(String firstName, String lastName,
String socialSecurityNumber){
this.firstName = firstName;
this.lastName = lastName;
this.socialSecurityNumber = socialSecurityNumber;
}
public String getFirstName(){
return firstName;
}
public String getLastName(){
return lastName;
}
public String getSocialSecurityNumber(){
return socialSecurityNumber;
}
@Override
public String toString(){
return String.format("%s: %s %s%n%s: %s",
"employee", getFirstName(), getLastName(),
"social security number", getSocialSecurityNumber());
}
}
 in java please heres the 9.14 example public class Employee {

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!