Which two code segments can you use to achieve thisgoal?

You are developing an application. The application includes classes named Mammal and Animal and an
interface named IAnimal.
The Mammal class must meet the following requirements:
-It must either inherit from the Animal class or implement the IAnimal interface.
-It must be inheritable by other classes in the application.
You need to ensure that the Mammal class meets the requirements.
Which two code segments can you use to achieve thisgoal? (Each correct answer presents a complete
solution. Choose two.)

You are developing an application. The application includes classes named Mammal and Animal and an
interface named IAnimal.
The Mammal class must meet the following requirements:
-It must either inherit from the Animal class or implement the IAnimal interface.
-It must be inheritable by other classes in the application.
You need to ensure that the Mammal class meets the requirements.
Which two code segments can you use to achieve thisgoal? (Each correct answer presents a complete
solution. Choose two.)

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 2

Your email address will not be published. Required fields are marked *


MarcoJacob

MarcoJacob

A and C

Herman McConnell

Herman McConnell

A and C, sealed class is prevent inheritance by other classes.