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...

The Enforce Referential Integrity box should normally be checked

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the maximum size a partition can be using the FAT32 file system?

a. 1024 GB b. 32768 MB c. 2048 GB d. 4096 MB

Computer Science & Information Technology