Solved

Consider the Following Code Snippet: Public Class Employee

Question 60

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

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