Multiple Choice
Consider the following code snippet:
Public abstract class Employee
{
Public abstract void setSalary() ;
) . .
}
You wish to create a 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
Q21: Consider the following class hierarchy:<br>Public class Vehicle<br>{<br>Private
Q22: If a subclass uses the same method
Q24: Which of the following statements about classes
Q28: You are creating a class inheritance hierarchy
Q29: Consider the following code snippet:<br>Public class Vehicle<br>{<br>)
Q30: Consider the following code snippet:<br>Public class Inventory
Q31: Consider the following code snippet:<br>Public class Vehicle<br>{<br>Protected
Q67: Which statement about methods in an interface
Q81: Consider the following code snippet: Employee anEmployee
Q95: Consider the following code snippet: Vehicle aVehicle