Multiple Choice
Consider the following code snippet: public abstract class Employee
{
Public abstract void setSalary() ;
) . .
}
You wish to create a concrete subclass named Programmer. Which of the following is the correct way to declare this subclass?
A) public class Programmer implements Employee
{
Public void setSalary() { . . . }
}
B) public class Programmer extends Employee
{
Void setSalary() { . . . }
}
C) public class Programmer implements Employee
{
Void setSalary() { . . . }
}
D) public class Programmer extends Employee
{
Public void setSalary() { . . . }
}
Correct Answer:

Verified
Correct Answer:
Verified
Q13: Which reserved word must be used to
Q31: Which of the following statements about comparing
Q32: Consider the following code snippet of a
Q33: When declared as protected, data in an
Q35: Consider the classes shown below: public class
Q37: A class that represents a more specific
Q38: Consider the classes shown below: public class
Q39: Consider the classes shown below: public class
Q40: Consider the following code snippet: public class
Q51: All hamsters are rodents and all rodents