Solved

You Have Created a Student Class

Question 86

Multiple Choice

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


A) private static int lastAssignedStudentNum = 1500;
B) public int lastAssignedStudentNum = 1500;
C) private int lastAssignedStudentNum = 1500;
D) public static int lastAssignedStudentNum = 1500;

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