Solved

You Have Created a Student Class

Question 51

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