Multiple Choice
Consider the following code snippet:
Public class Employee
{
) . .
Public void setEmployeeDept(String deptNum)
{
) . .
}
}
Public class Programmer extends Employee
{
) . .
Public void setEmployeeDept(int deptNum)
{
) . .
}
}
Which of the following statements is correct?
A) The Programmer class overrides the setEmployeeDept method.
B) The Employee class overrides the setEmployeeDept method.
C) The Programmer class overloads the setEmployeeDept method.
D) The Employee class overloads the setEmployeeDept method.
Correct Answer:

Verified
Correct Answer:
Verified
Q13: Which reserved word must be used to
Q18: The _ reserved word in a class
Q57: Which of the following is true regarding
Q60: A class that represents the most general
Q62: If a subclass contains a method with
Q67: Consider the following code snippet: Employee anEmployee
Q72: To test whether an object belongs to
Q94: Insert the missing code in the following
Q94: What must a subclass do to modify
Q96: Consider the following class hierarchy:<br>Public class Vehicle<br>{<br>Private