Using Java Question 2: (practice to write the code for mutator methods) A class
ID: 3851688 • Letter: U
Question
Using Java
Explanation / Answer
import java.util.*;
class Employee_yourLastName{
private String fullName;
private String employeeId;
private String department;
private String title;
//public mutator methods
public void setFullName(String fulName){
this.fullName = fullName;
}
public void setEmployeeId(String employeeId){
this.employeeId = employeeId;
}
public void setDepartment(String department)[
this.department = department;
}
public void setTitle(String title){
this.title = title;
}
// No-argument constructor
public Employee_yourLastName(){
}
// Parameter constructor
public Employee_yourLastName(String fullName,String employeeId,String department,String title){
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.