I need this to work in BlueJ Go off this code: public abstract class Employee { private String firstName; private String lastName; private String SSN; double salary; public Employee( String first, String last, String ssn ) { firstName = first; lastName = last; SSN = ssn; } public void setfirstName( String first ) { firstName = first; // should validate } public String getfirstName() { return firstName; } public void setlastName( String last ) { lastName = last; // should validate } public String getlastName() { return lastName; } public void setSSN( String ssn ) { this.SSN = ssn; } public String getSSN() { return SSN; } @Override public String toString() { return String.format( "%-12s%-12s%-12s", getfirstName(), getlastName(), getSSN() ); } public abstract double earnings(); }
I need this to work in BlueJ Go off this code: public abstract class Employee { private String firstName; private String lastName; private String SSN; double salary; public Employee( String first, String last, String ssn ) { firstName = first; lastName = last; SSN = ssn; } public void setfirstName( String first ) { firstName = first; // should validate } public String getfirstName() { return firstName; } public void setlastName( String last ) { lastName = last; // should validate } public String getlastName() { return lastName; } public void setSSN( String ssn ) { this.SSN = ssn; } public String getSSN() { return SSN; } @Override public String toString() { return String.format( "%-12s%-12s%-12s", getfirstName(), getlastName(), getSSN() ); } public abstract double earnings(); }
I need this to work in BlueJ Go off this code: public abstract class Employee { private String firstName; private String lastName; private String SSN; double salary; public Employee( String first, String last, String ssn ) { firstName = first; lastName = last; SSN = ssn; } public void setfirstName( String first ) { firstName = first; // should validate } public String getfirstName() { return firstName; } public void setlastName( String last ) { lastName = last; // should validate } public String getlastName() { return lastName; } public void setSSN( String ssn ) { this.SSN = ssn; } public String getSSN() { return SSN; } @Override public String toString() { return String.format( "%-12s%-12s%-12s", getfirstName(), getlastName(), getSSN() ); } public abstract double earnings(); }
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.