11.5k views
5 votes
Consider the following code snippet:public class Employee{private String empID;private boolean hourly;public Employee(){}. . .}Which statement reflects the action performed when the constructor to Employee is called?

User Quinekxi
by
5.6k points

1 Answer

7 votes

Answer:

Following are the solution to this question:

Step-by-step explanation:

In the given question the choices are missing, that's why its solution can be defined as follows:

In the given question, a class Employee is declared, that defines two-variable "empID and hourly", in which both are different in data type, and a default constructor of the class is declared, in this class, the variable empID will be assigned the value that is equal to null, and the variable hourly that assign a value that is equal to false.

User Jeffin
by
6.1k points