public class Employee{ private int empNum; private double empSalary;
?
public void setEmpNum(int emp) { empNum = emp; }
public void setEmpSalary(double sal)
{
empSalary = sal;
}
}
?
Given the class defined in the code above, write the Java statements that will create a new employee instance called employee15 and assign an empNum of 15 and empSalary of 500.00 to that employee instance.
What will be an ideal response?
Employee employee15;employee15 = new Employee();employee15.setEmpNum(15);employee15.setEmpSalary(500.00);
Computer Science & Information Technology
You might also like to view...
Windows is used to run apps.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
________ is a statistical hypothesis test that helps determine if samples of data were taken
from the same population. Fill in the blank(s) with correct word
Computer Science & Information Technology
Which of the following is used to move copy to the next column?
A. Section Break B. Continuous Section Break C. Column Break D. Page Break
Computer Science & Information Technology
The ____________________ buttons allow you to display the document in Print Layout, Read Mode, Web Layout, Outline, or Draft view.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology