Multiple Choice
Which of the following statements declares Salaried as a subclass of PayType?
A) public class Salaried implements PayType
B) public class PayType derives Salaried
C) public class Salaried extends PayType
D) public class Salaried derivedFrom(PayType)
Correct Answer:

Verified
Correct Answer:
Verified
Q19: Inheritance involves a subclass, which is the
Q20: Which of the following is the operator
Q21: In the following code, which line will
Q22: In the following statement, which is the
Q23: Because every class directly or indirectly inherits
Q25: All methods specified by an interface are
Q26: If a subclass constructor does not explicitly
Q27: In an inheritance relationship, the subclass constructor
Q28: If you don't provide an access specifier
Q29: Which key word indicates that a class