Solved

You Have Created an Employee Class

Question 101

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents