Solved

Consider the Following Code Snippet: Public Class Employee

Question 84

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:

verifed

Verified

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

Related Questions