Solved

You Have Created an Employee Class

Question 43

Multiple Choice

You have created an Employee class. You wish to have a unique, sequential employee number assigned to each new Employee object that is created. Which of the following declarations, if added to the Employee class, would allow you to determine which number was last assigned when you are creating a new Employee object?


A) private static int lastAssignedEmpNum = 500;
B) public int lastAssignedEmpNum = 500;
C) private int lastAssignedEmpNum = 500;
D) public static int lastAssignedEmpNum = 500;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions