Question 15


Question

Multiple Choices

You are developing an applicaton. The applicaton includes classes named Employee and Person and an interface named IPerson.
The Employee class must meet the following requirements:

  1. It must either inherit from the Person class or implement the IPerson interface.
  2. It must be inheritable by other classes in the applicaton.
Which code segments can you use to achieve this goal?

  • A. sealed class Employee : Person
  • B. abstract class Employee : Person
  • C. sealed class Employee : IPerson
  • D. abstract class Employee : IPerson

Answer:

BD